use the sendRedirect method that is part of the HttpServletResponse class.

Example:
// resp is of type HttpServletResponse.
resp.sendRedirect("http/server/denied.html");

Mike.
> -----Original Message-----
> From: Bruno Reis [SMTP:[EMAIL PROTECTED]]
> Sent: May 05, 1999 14:35
> To:   [EMAIL PROTECTED]
> Subject:      Redirecting a User
>
> Hello all,
>
> Can anybody tell me how do I send a user to an Url other than the servlet
> response.
> Let's say a servlet get a request but then it checks that the user has not
> logged in, how do I send him straigth to an existing page?
>
> Thanks in advance,
> Bruno Reis
>
> __________________________________________________________________________
> _
> 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