Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to send a 303 redirect

843841Aug 19 2005
Hi,
What I understood about http 303 status is that we have to give an alternate url to the client.
So what I did is :
response.setStatus(response.SC_SEE_OTHER);
response.setHeader("Location", newUrl);

Is this the correct way to send a 303 redirect ?

Thanks,
Anoop
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 16 2005
Added on Aug 19 2005
0 comments
168 views