This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get the sysmonth and year in drop down box.

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to get the default value of system month and year in drop down box.

as i did like this.

In Jsp page:



In action:


monthList = commontuil.getAllMonth();
yearList = commontuil.geAllYear() ();









Pleas help me how to do this.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You hadn't mention your "problem", whats not working for you as expected, its better to explain your "problem" and not just by giving code to find out error, that's saves readers time.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as i already tell my probelm.
How to get the default value of system month and year in drop down box.


Thanks .
 
Bindu Madhavi Kunda
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set a default value by assigning the value to actionform object in your action where this particular jsp is loading.
For example:




 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean, "default"? Do you mean the current month/year?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic