I doing my University assignment. I need help for accessing html option button values using Java Servlet. Any help in this regard.

<html>
  <head>
    <title>Result</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <h3> Select one option for each MCQ</h3>
    <form method="get" action="http://localhost:8084/MCQs/Webapplication1/src/java/serverlet">
        <table width="730" border="0">
            <tr>
                <td>
                    <strong>1. Java is starting in_____________</strong>
                </td>
            </tr>
            <tr>
                <td>
                   <input type="radio"  name="1" value="1989"> 1989<br>
                   <input type="radio"  name="1" value="1990"> 1990 <br>
                   <input type="radio"  name="1" value="1994"> 1994 <br>
                   <input type="radio"  name="1" value="1990"> 1995 <br>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>2. Java provide_________________</strong>
                </td>
            </tr>
            <tr>
                <td>
                   <input type="radio" name="2" value="1989"> Overloading<br>
                   <input type="radio" name="2" value="1990"> Overriding <br>
                   <input type="radio" name="2" value="1994"> Pointer <br>
                   <input type="radio" name="2" value="1990"> Multipule Inherintance  <br>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>3. String in java are represented as__________________</strong>
                </td>
            </tr>
            <tr>
                <td>
                   <input type="radio" name="3" value="1989"> Privimitve data type<br>
                   <input type="radio" name="3" value="1990"> Referance data type <br>
                   <input type="radio" name="3" value="1994"> Navtie data type <br>
                   <input type="radio" name="3" value="1990"> Operator <br>
                </td>
            </tr>
            <tr>
                <td>
                    <strong>4. The statment System.out.println(6+3); will result in _____________.</strong>
                </td>
            </tr>
            <tr>
                <td>
                   <input type="radio" name="4" value="1989"> 63<br>
                   <input type="radio" name="4" value="1990"> 6 + 3 <br>
                   <input type="radio" name="4" value="1994"> 9 <br>
                   <input type="radio" name="4" value="1990"> System Error <br>
                </td>
            </tr>
            <tr>
                <td>
                    <input type="button" name="btncheckResult" value="Check Reslut">
                    <input type="button" id="reset" name="btnReSet" value="Reset">
                </td>
            </tr>
        </table>
    </form>
  </body>
</html>

Please help ASAP

thx for the reply but this not I want. I want to database connectivity. I have to execute servlet to handle these option button and calucate the result of correct answer.

That tutorial is exactly what you need in regards of how to query database how and how to handle server request-response.
Else you will have to prove me wrong and not brush aside what is giving to you with no reason behind it.

This article has been dead for over six months. Start a new discussion instead.