This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 12769
    
    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