You can use either:
javax.servlet.RequestDispatcher.forward() or
javax.servlet.http.HttpServletResponse.sendRedirect();
-k
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> andrew tollin
> Sent: Friday, August 10, 2001 12:36 PM
> To: [EMAIL PROTECTED]
> Subject: Calling a servlet from another servlet
>
>
> Hello,
>
> Can someone tell me how to call a servlet from within another servlet.
>
> I am checking a users input in one servlet class, if the input is wrong I
> want to redirect him back to the servlet where he can re-enter
> the value. If
> the input is correct I want the program to continue within that servlet.
>
> A
>
> __________________________________________________________________
> _________
> 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