>>> Farooqui Hamid <[EMAIL PROTECTED]> 04-Jan-01 7:47:12 PM >>>
>I donno how to do this. Anybody has an idea?
>I have a presentation in school in like 4 hrs.
> If somebody knows it pls reply ASAP
In general you should try to do your own hoemwork or at least aqsk us
with more than 4 hours to spare.
>1. I have a servlet from where I know the value
>of variable 'userID'
>2. The above servlet opens up an html page
>(openup.htm) using response.sendRedirect
Why are you redirecting here? Why can't you use a RequestDispatcher
to serve the file?
>3. I set some values in the above html page and when
:>i press SEND button it calls another servlet to insert the
>values in database
>4. In the servlet in step 3 I need the value of variable
>userID from step 1
You need to do one of the following:
- encode the username from step 1 in the html page at step 2
- put the username on a session and ensure that both servlets will be
talking to the same session
Nic Ferrier
___________________________________________________________________________
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