aspose file tools*
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

Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 12682
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.
I agree. Here's the link:
subject: Tomcat 4.0 & response.encodeRedirectURL Problem
Similar Threads
session tracking
Using Server-Status and Tomcat 4.1.29
is Tomcat j2EE complient
Deploying Servlets in Tomcat 4.0
is TomCat J2EE Complient