Hi,
I'm using tomcat3.2.3 on solaris . I'm trying to configure a existing
application on to tomcat. I couldn't figure out the problem I'm facing.
Application has a piece of code which gets the servletpath from
request object "reg.getServletPath()" . Suppose current page URL is
http://xxx.xxx.xxx:/sqdev25/servlet/CsmServlet?moduleid=Csmdsp
sqdev25 is my application root under /webapps .
In my server.xml I had a context path
Context path="/sqdev25"
docBase = "webapps/sqdev25"
----------
loks like req.getServletPath() is returning "/servlet/CsmServlet " and
doesn't contain application root "sqdev25" . Now to load next page code
uses this servlet path and says /servlet/CsmServlet and so it fails.
Not Found (404)
Original request: /servlet/CsmServlet
Not found request: /servlet/CsmServlet
req.getServletPath isn't it supposed to return
/sqdev25/servlet/CsmServlet
Did someone comeacross such situation? I want to know is this the way it
works OR did I miss something so the servletPath is not returned
correctly ? same peice of code works fine on JRUN existing environment.
I wanted to make sure if I need to do something in configuration for
Tomcat to get the servletpath completely.
Can someone please suggest.
Thanks in advance,
Sampath