Monday, December 19, 2005


How to set response code in the response.

For example when you redirect from a servlet to a jsp page, default redirect response code will be (302 - Moved Temporarily). How to set this to 301 programatically.

response.setStatus(response.SC_MOVED_PERMANENTLY);

0 Comments:

Post a Comment

<< Home