getParameter of radio button in .java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
su2
Reply | Threaded
Open this post in threaded view
|

getParameter of radio button in .java

su2
Hi All,
 
I want to have the parameter value of radio button (I have two radio buttons with Yes and No in Form Widget)
 
------------------------------------------------------------------------------------------
<field name="yourAnswer"> 
<radio> 
<option key="Yes"/> 
<option key="No"/> 
</radio> 
</field>         
 
------------------------------------------------------------------------------------------
 
In .java file I tried
 
String yourAnswer = (String) request.getParameter("yourAnswer");
request.setAttribute("yourAnswer",yourAnswer);
 
and on screen
<container><label text="yourAnswer: ${parameters.yourAnswer}"/></container> 
 
But it gives me no value.
 
Thanks for the help in advance.