>>> Xizhen Wang <[EMAIL PROTECTED]> 09-May-00 4:10:25 PM >>>

>Nic, i'm just academicly curious to know the answer.

RequestDispatcher is called a programmatic redirect. It is a feature
of the API, not of HTTP generally. It is not designed to do what you
want it to do... it's really as simple as that.


>Actually, if the request is a GET, we can get the query string
>and glue it at the end of the new servlet.
>So we can redirect to a new servlet with request.

You should be able to send a redirect with a POST - though I'm not
sure - I haven't checked the HTTP RFC.

redirect *is* an HTTP feature. What it does is to send back to the
browser a response saying:
  the resource you want isn't here - try this place instead

The browser then uses the suggested location to make another HTTP
request.

But that is still not the same as a RequestDispatcher.forward().



Nic

___________________________________________________________________________
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