Why don't u use RequestDispatcher class? Regards, Sabari Arasu
> -----Original Message----- > From: vijay [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, January 10, 2002 4:28 AM > 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