• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I turn off URL-Rewriting of tomcat ? Thank you!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic