It's not a secret anymore!
The moose likes Servlets and the fly likes tomcat 3.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tomcat 3.1" Watch "tomcat 3.1" New topic
Author

tomcat 3.1

Bob Moranski
Ranch Hand

Joined: Nov 22, 2000
Posts: 177
Hi, tomcat3.1 does not support setting cookies in servlets that do sendRedirect? So, can we still set cookies in servlets that do "sendRedirect" or can we use
either
a) response.setStatus(response.SC_MOVED_TEMPORARILY);
response.setHeader("Location", newURL);
b) response.setHeader("Refresh", "1", newURL);
Thanks for any kind answers.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: tomcat 3.1
 
It's not a secret anymore!