Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat 4.0 & response.encodeRedirectURL Problem" Watch "Tomcat 4.0 & response.encodeRedirectURL Problem" New topic
Author

Tomcat 4.0 & response.encodeRedirectURL Problem

Vikas Aggarwal
Ranch Hand

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


Vikas Aggarwal

Founder @
Leads and Deals Limited

www.LeadsAndDeals.com
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 4.0 & response.encodeRedirectURL Problem
 
Similar Threads
Deploying Servlets in Tomcat 4.0
is Tomcat j2EE complient
is TomCat J2EE Complient
Using Server-Status and Tomcat 4.1.29
session tracking