in the 5.5.17 version my app is under the ROOT directory yes (that s the correct way like we told before no ?)
to give another example with exactly the same deployement (both under ROOT)
with a 5.5.17 and a 5.5.20
5.5.17 :
ContextPath: /test
ServletPath: /test.jsp
PathInfo: null
RequestURI: /test/test.jsp

5.5.20
ContextPath:
ServletPath: /test/test.jsp
PathInfo: null
RequestURI: /test/test.jsp


so exactly the same problem that between the 5.5.9 and 5.5.17
both the 5.5.9 and 5.5.20 appear to work in the "good" way but the 5.5.17 still has the same problem
my conf is the same for both :
<Host name="mydomain.com" appBase="/usr/local/tomcat5/webapps/users1" unpackWARs="true" autoDeploy="true" /> for both the 5.5.20 and 5.5.17 so what can explain that the variable aren't identical?


----- Original Message ----- From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Tuesday, October 31, 2006 9:14 PM
Subject: RE: getContextPath


From: mast [mailto:[EMAIL PROTECTED]
Subject: Re: getContextPath

i use a simple jsp file with :
ContextPath:  <%= request.getContextPath() %><br>
ServletPath:  <%= request.getServletPath() %><br>

with a 5.5.9 server
ContextPath: /test
ServletPath: /test.jsp

with a 5.517 server
ContextPath:
ServletPath: /test/test.jsp

Did you change how the app was deployed between 5.5.9 and 5.5.17?  It
appears that in your 5.5.17 version, your app is under the ROOT
directory, rather than under your <Host>'s appBase.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to