Retrieve values from drop down list in HTML using JSP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antony78
    New Member
    • Mar 2007
    • 1

    Retrieve values from drop down list in HTML using JSP

    Hi,

    Could you please tell me how to retrieve the values in the select tag of HTML using JSP.

    eg:
    <select name="", id="",>
    <option value="1">1</option>
    </select>.

    I want to retrieve the value 1 in the next page using JSP.

    Thanks in advance,
    Antony.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by antony78
    Hi,

    Could you please tell me how to retrieve the values in the select tag of HTML using JSP.

    eg:
    <select name="", id="",>
    <option value="1">1</option>
    </select>.

    I want to retrieve the value 1 in the next page using JSP.

    Thanks in advance,
    Antony.
    Code:
     request.getParameter("id");

    Comment

    Working...