0

Hi all I am having a jsp page where I have entered radion button value ,like this:--
<td><input type="radio" name="billType" value="1"/> <font color =blue> Brief Bill</font></td>
<td><input type="radio" name="billType" value="2" /> <font color =blue>Detailed Bill</font></td>
<td><input type="radio" name="billType" value="3" /> <font color =blue>Itemized bill</font></td></tr>

Now I want to get this value in my class in an integer variable so that I can use it at other places also, how can I get this integer value out of it.

4
Contributors
4
Replies
7
Views
5 Years
Discussion Span
Last Post by brynFlew
0

Please try posting this in the JSP or Java forums. This is the JavaScript forum, which has absolutely nothing to do with Java or JSP.

0

@stbuchok please do not advise people to repost it as then they will face warning/infraction for multiposting. Instead of that hit "Flag Bad Post", write short message "move to JSP" and moderator/admin will take care of it

THREAD MOVED

0

use this link http://www.exampledepot.com/egs/javax.servlet.jsp/myform.jsp.html

and instead of String in the java bean use int and instead of initializing the values to "" use 0 or an int number

for the form (instead of true/false use values) and at top of header make sure you set the properties

<jsp:setProperty name="form" property="*" />
<p style="text-align:center;">Yes<input type="radio" name="check" value="true"<jsp:getProperty name="form" property="check" />/>No<input type="radio" checked="true" name="check" value="false" <jsp:getProperty name="form" property="check" />/></p>

Edited by brynFlew: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.