Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i get selected radio button value using jsp

 
R Sugan
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to get selected radio button value using jsp.Actually am displaying my database value through radio button using jsp.I need to selected radio button value and am also need to text box value through submit button at the same time. Finally the selected value transfer into another one jsp page.I can able to get dynamic text box value but i can't able to get the radio button value.Can someone help me to do solve this problem?

sample.jsp


trans.jsp


Thanks.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too much irrelevant code. Won't read. For the next time please post an SSCCE.

To the point, give the input element a name and use this name in HttpServletRequest#getParameter().
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic