In Javascript,onSubmit,  you can set value of the field ( or may be some
other fhidden field ) equal to

"document.forms[0].selCategory[document.forms[0].selCategory.selectedIndex].
text"

You will get the purpose solved

Abhay


----- Original Message -----
From: Amar Das <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 12:13 AM
Subject: Option Text


> 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?
>
> Thanks
>
> ====================================================================
> ++  Amarjyoti Das
>
> ++  email: [EMAIL PROTECTED]
>
> ++  phone: (207) 594-3048 x 30
>
> ++  fax:(207) 594-3021
>
> ++  web: www.stgeorgeconsulting.com
>
> ====================================================================
>
>
___________________________________________________________________________
> 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
>

___________________________________________________________________________
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

Reply via email to