File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get the sysmonth and year in drop down box.

 
pankaj semwal
Ranch Hand
Posts: 303
  • 0
  • 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: 2904
1
Java Spring Ubuntu
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean, "default"? Do you mean the current month/year?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic