Vijay,

Why don't you just use response.sendRedirect("other_servlet") to redirect
the user to the other servlet if they validate?

-Tom

-----Original Message-----
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 4:58 PM
To: [EMAIL PROTECTED]
Subject: Servlet Communication


Can anybody tell me how to check a particular condition in a servlet and
depending on the result of the condition how to transfer to another servlet?

Iam trying to validate a users user ID and Passwd . My first servlet is
login.java where iam simply showing the html for USER ID and PASSWD to
enter. After submit i want to validate the USER ID and PASSWD and if it
fails bring the same servlet or if it is successful show another servlet.
Validating is not a problem. But to transafer the control between the
servlets is a problem.

How should i do this.


Thanks
Vijay

___________________________________________________________________________
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