Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I turn off URL-Rewriting of tomcat ? Thank you!

 
Yajun Zhan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I turn off URL-Rewriting of tomcat ? Thank you!
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
URL rewriting does not occur automatically, it must be specifically programmed into an application. Look for calls to encodeURL in the source code.
Bill
 
Yajun Zhan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hava code my program with every URL by encodeURL(xxx) .

now I want to turn off the effect of encodeURL,and not want to rewrite my code .

In other app server , such as resin , I can do this by
<session-config>
<session-max>4096</session-max>
<session-timeout>3000</session-timeout>
<enable-cookies>true</enable-cookies>
<enable-url-rewriting>false</enable-url-rewriting>
</session-config>

But I can not find this in tomcat.

Thank you for you reply
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking through the servlet APIs for 2.3 and 2.4 I don't see any element like that in the web.xml DTD under <session-config> so the resin usage is non-standard.
According to my reading of the Tomcat docs - encodeURL should return a unchanged String if the client has cookies enabled. What exactly do you observe?
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic