Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 4.0 & response.encodeRedirectURL Problem

 
Vikas Aggarwal
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have just installed Tomcat 4 and everything is working fine except the response.encodeRedirectURL("ffff"); which was earlier working on tomcat 3. I have checked the servlet 2.3 PI and the method is not deprecated. Also I have serached on the net I think there is some special behavious attached to Tomcat 4.0 for response.encodeRedirectURL. Please help.
The code is as follows:
String redurl=response.encodeRedirectURL("http://localhost:8080/servlet/homepage");
response.sendRedirect(redurl);
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly does the method return?
The docs say the it does some logic to see if encoding the sessionID is necessary so presumably if the client browser supports cookies, it won't do anything.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic