IntelliJ Java IDE
The moose likes JSP and the fly likes Dates Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Dates" Watch "Dates" New topic
Author

Dates

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 764
I'm fairly new to JSP and I was wondering if anyone know of a calendar object available that a person could use to pick a date (instead of choosing from drop-downs or entering in a text field)? Thanks for any feedback.
roberthpike@yahoo.com
Rob
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1860
Like a calendar applet or a ready made popup window type of thing?
Simon
Manjunath Subramanian
Ranch Hand

Joined: Jul 18, 2001
Posts: 236
A Dialog or a popup calendar can be very well created and shown to the client using javascript instead of doing it in a jsp or a servlet.
If you decide to use jsp/servlet, for every action of the client like traversing the years or months you need to send a request the server, which is not good.
Point your browser to http://dynamicdrive.com/dynamicindex6/index.html
for a host of Calendars and Clocks developed using javascript.
HTH,
Manjunath
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 764
I'm not trying to do this I was curious. See right now I have a drop-down for a month, 1 for day, and 1 for year (for the last 10 yrs). I heard that instead of using this there was a way of calling a combo type calendar, where clicking it would give a calendar and choosing a date would fill the combo box value with that date. Actually I should correct myself in saying that they said this was in ASP and I was wondering if there might happen to be one in JSP as well. I couldnt come across anything in the notes and textbooks I have so I was just curious thats all. I would appreciate any feedback though. Thanks.
Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
Hi Rob,
wht ur referring to is actually done in ASP using ActiveX.Unfortunately we cannot call ActiveX in JSp but wht u can do is look for an Applet Calendar on the net or make it on ur own and call it in JSP page.
hope this helps,
Sachin

Originally posted by Rob Pike:
I'm not trying to do this I was curious. See right now I have a drop-down for a month, 1 for day, and 1 for year (for the last 10 yrs). I heard that instead of using this there was a way of calling a combo type calendar, where clicking it would give a calendar and choosing a date would fill the combo box value with that date. Actually I should correct myself in saying that they said this was in ASP and I was wondering if there might happen to be one in JSP as well. I couldnt come across anything in the notes and textbooks I have so I was just curious thats all. I would appreciate any feedback though. Thanks.
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 764
Yeah I was just curious but that seems to be what I was expecting. I'm unfamilar with ASP but does anything need to be downloaded or done in addition to simply going to a specific site? Thanks again.
 
IntelliJ Java IDE
 
subject: Dates
 
developer file tools