Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

urgent!!drop down menu for year

 
sunita shaw
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a Date object(without parameters) and then use the getYear method. Add 1900 to this value, will get the current year.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic