can i take value of selected radio button in scriplet after clicking a button
<p>I have a jsp page where i have placed several radio buttons.</p>

<p>After selecting radio button and clicking a submit button it will call a javascript function, which needs the selected value of the radio button to perform some operations into the scriplet.</p>

<p>Can anyone solve this ?</p>

<pre><code>&lt;td align="center"&gt;&lt;input type="radio" name="radio" id="radio" value="value1"&gt;&lt;/td&gt;
&lt;td align="center"&gt;&lt;input type="radio" name="radio" id="radio" value="value2"&gt;&lt;/td&gt;
&lt;td align="center"&gt;&lt;input type="radio" name="radio" id="radio" value="value3"&gt;&lt;/td&gt;

&lt;td &gt;&lt;a onclick="Javascript:delete();"&gt;&lt;span&gt;Delete&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;

&lt;script language="javascript" type="text/javascript"&gt;
function delete()
{
    &lt;% String str= here i want that selected radio buttons value%&gt;
}
&lt;/script&gt;
</code></pre>
