Seb,
In your servlet, you will need to set two headers:
response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", new_location);
new_location needs to be an absolute URL (ie.
http://server:port/path/file.html)
The server has to be the same server that the servlet was downloaded from.
Your applet will have to parse the response and if the response status code
is 302, it should read the new location from the Location header and then
use that location to make a new connection.
-Richard
At 06:42 PM 9/12/01 +0200, you wrote:
>Hi,
>
>I have an applet which communicates with a servlet
>via post http message. I would like the applet to be redirected to
>another page.
>
>How could i do that ?
>
>Thanks
>
>Seb
>
>___________________________________________________________________________
>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