You can use response.sendRedirect in servlets.

But keep in mind that this is a complette different 
thing than dispatcher.forward().

redirect() forces the client to do a second request 
to the url. (You can see this in the browser as it will
show a different URL). Forward() works internally, the 
response to the initial request is created by the given 
servlet/jsp. This is transparent to the client.

> -----Urspr�ngliche Nachricht-----
> Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 8. Oktober 2002 08:42
> An: [EMAIL PROTECTED]
> Betreff: Forwarding in servlets.
> 
>            RequestDispatcher dispatcher = 
> request.getRequestDispatcher("/test.jsp") ;
>            if (dispatcher!=null) {
>                 dispatcher.forward(request, response) ;
>            }
> to forward a request to a jsp page. Is it possible to use 
> response.sendRedirect like in jsp ?  
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to