To answer ur question in short,

You should consider using session variables, are client side cookies, if
your applcation permits.

-Gurudev


Gurudev Devanla
mailto: [EMAIL PROTECTED]
408 573 2556 (O)


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Jennifer Feeney
Sent: Friday, February 16, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: Passing data from 1 servlet to another


Hi all,

I have a problem and I cant seem to find the answer for it in the
archives.

Description:
================================================================
I have built servlets to register a person, putting all there details
in my Access database. I also have a Login servlet, where users enter
their password and Unique ID number, this gives them access to my
site. When they are in the site(successfully logged in), i have given
the option of changing their password, they click on a link and it
brings them to a new servlet, ChangePassServlet.
Here they are asked to enter their ID and their new password.....

Problem:
====================================================================
How do I carry the ID number entered when they were logging on to the
service(in the LoginServlet) thru to the ChangePassServlet?I need
this value to validate the ID they enter in ChangePassServlet with
the ID they used to login.


Any help on this would be great.
Thank you in advance to anyone that helps me.

I have read about Chaining servlets, but thats not what I need, as
chaining servlets is a chain of servlets that call eachother, but in
my case the ChangePassServlet may not be called if the user does not
want to change their password. It is only called if the user clicks
on the link to that servlet!!

Hope someone can help.

Kind Regards,
Jennifer

_____________________________________

Get your free E-mail at http://www.ireland.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