File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retaining Retaining Drop down value

 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my jsp page i am having 2 drop downs.after selecting first drop down value,which is coming from DB then request go to controller to fetch the second drop down box value and back to the same JSP...While it is coming back i have to retain my 1st drop down value as well as other field values...

Please Help me on this...

Thanks in Advance,
Narvish
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you post the values to the controller they will be avialable to pass to the JSP.
 
LakshmiNarayana vishnu
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not getting...any help..

Regds,
Narvish
 
Michael Ku
Ranch Hand
Posts: 510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please explain what you are having trouble with. The selected value from the first drop down will be posted. Then you just set it as the selected value when you visit the JSP the second time.

What have you done so far?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic