aspose file tools*
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
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: 12825
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urgent!!drop down menu for year