hai
u can use this javascript code to retrive which option is selected
var seltext=
document.formname.colors.options[this.document.formname.colors.selectedIndex
].text;
u can use this code in the servlet which option is selected
String seltrans=req.getParameter("colors");
hope it's useful for u
-siva bass
> -----Original Message-----
> From: harry_hendrata [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, August 17, 2000 2:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Interpreting Select Options
>
> request.getParameter("colours") should return c3
>
> regards,
>
> Harry
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jenkins, Christopher
> Sent: Thursday, August 17, 2000 5:29 PM
> To: [EMAIL PROTECTED]
> Subject: Interpreting Select Options
>
>
> Help!,
>
> The following excerpt, produces a select list with three options. How can
> I
> read these options from a Java Servlet?
>
> <select name="colours" size=10>
> <option value="c1">Yellow
> <option value="c2">Blue
> <option value="c3">Red
>
> Using the get method produces
>
> http://localhost:8080/examples/servlet/colourFile?&colours=c3
>
> colourFile is the called servlet.
>
> This leads me onto another question:
>
> I'm using apache's tomcat as my servlet engine, and examples as the
> default
> project how do you create a new project? I apologise if this is beginners
> stuff.
>
> Chris J.
> xt39096
> e-mail:- jenkins, christopher
>
>
>
>
> The Royal Bank of Scotland plc is registered in Scotland No 90312.
> Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
>
> The Royal Bank of Scotland plc is regulated by IMRO, SFA and Personal
> Investment Authority.
>
> This e-mail message is confidential and for use by the addressee only. If
> the message is received by anyone other than the addressee, please return
> the message to the sender by replying to it and then delete the message
> from
> your computer.
>
> 'Internet e-mails are not necessarily secure. The Royal Bank of Scotland
> plc
> does not accept responsibility for changes made to this message after it
> was
> sent.'
>
> __________________________________________________________________________
> _
> 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
___________________________________________________________________________
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