Hi Bill,

I think, this will help you.

Check for the parameter in the querystring in you doGet() method.

if there is no parameter just show the first page with the select box.
And Action of your form shoud be the same servlet.

If there is some parameter with the name of your select box then
call the procedure, which shows the second page.

-sunil

----- Original Message -----
From: Bill Wyza <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 14, 2000 11:05 AM
Subject: Servlet question on passing variables


> I have a servlet that generates a dynamic html page with a select box
> on it.  The user must select an item from the list and press submit.  I
> need
> to capture the value of the select box and pass it to another procedure
> in the servlet to create a second dynamic page.
>
> How to I get the value of the select box and keep it for later use?
>
> Bill
>
>
___________________________________________________________________________
> 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