GeeCON Prague 2014*
The moose likes Servlets and the fly likes how to display calender in jsp for jsp 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "how to display calender in jsp for jsp 1.2" Watch "how to display calender in jsp for jsp 1.2" New topic
Author

how to display calender in jsp for jsp 1.2

ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
can any one give me hint how to display calendar (not simple date) in tabular format
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by ganesh pol:
can any one give me hint how to display calendar (not simple date) in tabular format


How would you display it in HTML?
ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
it is like this
http://javascript.internet.com/calendars/calendar.html
but not JavaScript but i have to use jsp 1.2
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by ganesh pol:
it is like this
http://javascript.internet.com/calendars/calendar.html
but not JavaScript but i have to use jsp 1.2


Ok. Now where is the problem. You can render the same html from your JSP. But as we know JSP is a server-side technology, unlike javascript, that means it requires a server call in order to take any action. For example if you change the month from the listbox it will submit that to server and gets the month map from server.

Are you getting me?
ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
hi adeel
i will tell you my problem in more detail
i am working on leave management System

when user logs in the system i have to provide facility
from which he can see how many people are on leave from his team
if any one from the user who logs in is on leave then calender that date must be marked red with the person who is on leave

and i think in jsp1.2 we can not use jsp useBean hence only option in front of me is using Scripting
i will show you more specific page which uses
script (uses cookies)
http://javascript.internet.com/calendars/cookie-calendar/calendar.html
but i don't wants to use script
ganesh pol
Ranch Hand

Joined: Apr 29, 2005
Posts: 151
thanks addel
but now i have got one ready made code
http://www.jspin.com/func/content?tree=jspin/tutorials/applicat/calendar&id=4756610
thanks for taking initatives to solve my problem

now i will see this code and do some modifications in it
 
GeeCON Prague 2014
 
subject: how to display calender in jsp for jsp 1.2