title: How to pass radio button having <%some code %> as its name to java action class?
body: <p>Here is my radio button in a form in my JSP:</p>
  
  <pre><code>&lt;label&gt;Present&lt;/label&gt;&lt;input type = "radio" name = 'updateattendance +
  &lt;%=String.valueOf(search.getEmpId())%&gt;' value = "present" /&gt;
  &lt;label&gt;Absent&lt;/label&gt;&lt;input type = "radio" name= 'updateattendance +
  &lt;%=String.valueOf(search.getEmpId())%&gt;' value = "absent"/&gt;`
  </code></pre>
  
  <p>The usual way to get the value of radio button in Java class is as follows:</p>
  
  <pre><code>String attStatus = request.getParameter("radiovalue"); 
  </code></pre>
  
  <p>where <code>radiovalue</code> is the name attribute of radio button in the JSP. But in my above code the name of radio button has some code.</p>
  
  <pre><code>'updateattendance + &lt;%=String.valueOf(search.getEmpId())%&gt;'
  </code></pre>
  
  <p>So how should I get it in my Java class?</p>