This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes JSP and the fly likes urgent!!drop down menu for year Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "urgent!!drop down menu for year" Watch "urgent!!drop down menu for year" New topic
Author

urgent!!drop down menu for year

sunita shaw
Ranch Hand

Joined: Apr 06, 2003
Posts: 45
i'm designing a jsp page in which i want a text field from which i select a year from a drop down menu & then "ok" it.but this drop down year should be from the system's calendar i.e the current year & the next 10 years ahead.how do i do it.please le t me know soon.
-Thanx
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 13007
    
    5
Heading a post "Urgent" does not do anything but take up space you might otherwise use to be informative. You might start by examining the methods in the java.util.Date class.
Bill
Nitin Barhanpurkar
Greenhorn

Joined: Apr 01, 2003
Posts: 8
Create a Date object(without parameters) and then use the getYear method. Add 1900 to this value, will get the current year.
 
Have you checked out Aspose?
 
subject: urgent!!drop down menu for year
 
jQuery in Action, 3rd edition