tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From graghupa...@aegonuk.co.uk
Subject RE: tomcat contexts
Date Wed, 23 Apr 2003 07:48:37 GMT
you should always code servlet.getContextPath() + "/jsp/somefile.jsp" .... 

Thanks 
guru

-----Original Message-----
From: Rohit Peyyeti [mailto:rohit@translogicsys.com]
Sent: 23 April 2003 08:05
To: Tomcat Users List
Subject: tomcat contexts


Hello:

When I refer to any jsp file with /jsp/somfile.jsp, tomcat actually looks
for 
this file under root context, whereas I have context in place called 
"/test". Shouldn't tomcat refer that file as "/test/jsp/somefile.jsp" even 
when I refer to it as "/jsp/somfile.jsp". Doesn't tomcat take / w.r.t 
context? 

This would also mean I hardcode "/test" in all files. Is that not a 
problem?

Thanks!
Rohit

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message