Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> Hi all, this is the case, hope to get help from you: > 1. add a cookie to response > 2. then, redirect it to a new URL > Results:
The cookies stored in the response object would be lost once you use sendRedirect. You'll have to use RequestDispatcher through which you can forward your Request and Response objects. String path = "/servlet/yoururl?parameters" cheers,
Replies: |
Sponsored Links
|