Amar Das wrote:
>
> I have a list in a jsp page which somewhat looks like the following
> <p>Category
> <select name="selCategory">
> <option value="ALL" selected>ALL</option>
> <option value="AMPH">Amphibious</option>
> <option value="AW">Air Warfare</option>
> <option value="C2">Command and Control </option>
> </select>
> </p>
>
> When I submit the form containing the list I can get the parameter value
> using the following syntax
> categoryValue = request.getParameter(selCategory) -> results in AMPH if
> that is selected.
>
> How can I get Amphibious instead of AMPH without using a hidden component?
<option value="Amphibious">Amphibious</option>
or
Hashtable table = new Hashtable();
table.put("AMPH", "Amphibious");
//...etc.
categoryValue = table.get(request.getParameter(selCategory));
K Mukhar
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html