Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

selected value passing to Serrvlet

 
Shiwani Aggarwal
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you let me know how to pass selected value from a combo box to servlet and then when jsp is agian displayed how to retain valuues user would have entered.
I have a jsp, where user need to enter some fields, like txt fields, combo, radio...when he clicke submit I need to get selected values in servlet..I am unable to get the value of combo field and date. Secondly after submit is clicked all these values should be reatined on the page but all goes off obviously. How do we do that?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are forwarding to the JSP from the servlet to which your form was submitted all of the request parameters are still on the request and available to the JSP. You can use these values to set the value and select attributes of the various form fields accordingly.
hth,
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic