Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with "URL Rewriting". (encodeURL( ) method)

Status
Not open for further replies.

kook04

Programmer
Jun 26, 2001
58
0
0
US
Hey all,

I'm having a problem with then encodeURL( ) method of the HttpServletResponse class.

When I encode a URL that is pointing to a servlet, the encoded URL string I get back give the web server (iPlanet 4.1) a problem. I get a ClassNotFoundException because it is viewing the appened session id as part of the class name (??)

For example:

response.encodeURL("/servlet/MyServlet");

gives:

/servlet/MyServlet;sessionID=1234 (etc)...

My first thought is: "Shouldn't that ';' be a '?'

Anyhow, if anyone can help, it would be greatly appreciated, this has been giving me major headaches.

Thanks..
------
KJR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top