jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Tomcat 4.0 & response.encodeRedirectURL Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat 4.0 & response.encodeRedirectURL Problem" Watch "Tomcat 4.0 & response.encodeRedirectURL Problem" New topic

Tomcat 4.0 & response.encodeRedirectURL Problem

Vikas Aggarwal
Ranch Hand

Joined: Jun 22, 2001
Posts: 140
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");

Vikas Aggarwal

Founder @
Leads and Deals Limited

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
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.
Consider Paul's rocket mass heater.
subject: Tomcat 4.0 & response.encodeRedirectURL Problem
jQuery in Action, 3rd edition