File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How can i get selected radio button value using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "How can i get selected radio button value using jsp" Watch "How can i get selected radio button value using jsp" New topic
Author

How can i get selected radio button value using jsp

R Sugan
Ranch Hand

Joined: Mar 13, 2009
Posts: 48
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

Joined: Oct 08, 2006
Posts: 2458
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().
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How can i get selected radio button value using jsp
 
Similar Threads
Error comes whilke compiling the jsp page
JSP Error
Getting error
How to getParameter value
Doubts in jsp