Results 1 to 5 of 5
  1. #1
    casid is offline Member
    Join Date
    Nov 2008
    Posts
    18
    Rep Power
    0

    Default Basic JSP question..

    Hey guys,

    I have JCalendarButton in jcalendarbutton.jar file. I like to add it to my jsp page. is it possible.

    in general could you pls tell me how add awt components in JSP.
    do we have to call them by reference name or id?


    thanks.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    its not directly possible to have AWT components on their own, inside a JSP page.

  3. #3
    casid is offline Member
    Join Date
    Nov 2008
    Posts
    18
    Rep Power
    0

    Default

    what is the alternative way to do it? do I have chance to do it with servlet ?

  4. #4
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    it should be possible to do a calendar with a servlet, but just servlet on its own would cause the page to submit and refresh with every user interaction with it right. Maybe a pop up window then, but that uses javascript. And on that note, having a calendar choose widget in javascript would allow for a kind of dynamic HTML feature, improving the user experience (and possibly simplifying the operation by not requiring to pass all form parameters into the servlet for each calendar click operation).

    I would recommend to try to find an existing Javascript calendar chooser API.

  5. #5
    casid is offline Member
    Join Date
    Nov 2008
    Posts
    18
    Rep Power
    0

    Default

    yeah actually after all attempts I decided to use javascript calendar, it looks more useful than servlet, refreshing page each time.
    thank you for your support and suggestions.

Similar Threads

  1. Basic question about compiling
    By Rambar in forum New To Java
    Replies: 2
    Last Post: 10-28-2009, 11:08 AM
  2. Basic question on OOP.
    By madthinker in forum New To Java
    Replies: 7
    Last Post: 01-26-2009, 08:09 PM
  3. Basic MouseListener Question
    By jshailes in forum AWT / Swing
    Replies: 9
    Last Post: 01-15-2009, 09:58 AM
  4. Basic question about EJB
    By javaplus in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 07-15-2008, 06:44 PM
  5. Very basic question
    By gvi in forum New To Java
    Replies: 2
    Last Post: 10-30-2007, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •