title: How can I get the selected radio button value on another jsp page?
body: <p>This is the 1st page. I'm facing problem with the radio button value being NULL on the submission handling page.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;LoginForm&lt;/title&gt;
    &lt;/head&gt;
  &lt;body &gt;
  
  &lt;font size="20"&gt;&lt;marquee behavior="alternate"&gt;Spice Digital&lt;/marquee&gt;&lt;/font&gt;
    &lt;h1&gt;Login Page&lt;/h1&gt;
      &lt;h2&gt;Signup Details&lt;/h2&gt;
      &lt;form action="LoginCheck.jsp" method="post"&gt;
        &lt;br/&gt;Username:&lt;input type="text" name="username"&gt;
        &lt;br/&gt;Password:&lt;input type="password" name="password"&gt;
  
        &lt;br/&gt;select your gender:
        &lt;select name=dropdown&gt;
          &lt;option name=one value=one&gt; Male &lt;/option&gt;
          &lt;option name=two value=two&gt; Female &lt;/option&gt;
        &lt;/select&gt;
  
        &lt;br/&gt;select your department:
        &lt;input type="radio" name=myradio value="1"/&gt;MCA
        &lt;input type="radio" name=myradio value="2"/&gt;B.Tech
        &lt;input type="radio" name=myradio value="3"/&gt;Other
  
        &lt;br/&gt; select your choices:
        &lt;input type="checkbox" name=mybox value="1"/&gt;java
        &lt;input type="checkbox" name=mybox value="2"/&gt;c++
        &lt;input type="checkbox" name=mybox value="3"/&gt;c
        &lt;input type="checkbox" name=mybox value="4"/&gt;sql
  
        &lt;br/&gt;enter you comments here:
        &lt;textarea name=mytextarea cols=20 rows=5&gt;
        &lt;/textarea&gt;
  
        &lt;br/&gt;&lt;input type="submit" value="Login"&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is the 2nd page. I'm unable to get the selected value here. Am I using <code>request.getParameter()</code> wrong?.</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;JSP Page&lt;/title&gt;
    &lt;/head&gt;
  &lt;body BACKGROUND="C:\Documents and Settings\temp-      00940\workspace\login\WebContent\background.jpg"&gt;      
      &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
      &lt;form action="LoginForm.jsp"  method="get"&gt;
        &lt;font size="20"&gt;&lt;marquee&gt;Spice Digital &lt;/marquee&gt;&lt;/font&gt;
          &lt;h2&gt;
  
          &lt;%          
          String a=session.getAttribute("username").toString();
          out.println("Welcome "+a+"..!!");
          %&gt;
          &lt;br&gt;
          &lt;%
          String b=request.getParameter("myradio");
          out.println("Your department is "+b);
          %&gt;
          &lt;br/&gt;
          &lt;%
          String c=request.getParameter("mybox");
          out.println("Your choice is "+c);
          %&gt;
          &lt;/h2&gt;
          &lt;br/&gt;
          &lt;a href="http://www.Google.com"&gt;Click here to google search&lt;/a&gt;
          &lt;br/&gt;
          &lt;br/&gt;&lt;br/&gt;
          &lt;br/&gt;&lt;br/&gt;&lt;br/&gt;
       &lt;a href="Logout.jsp"&gt;LogOut&lt;/a&gt;
     &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>