Hmm, that's a great tip. Wasn't aware of that. Now I just need to find out where that invoker servlet is defined on the Netweaver platform.
Thanks! Scott Van Wart-2 wrote: > > pantichd wrote: >> Hello, >> >> Sorry for posting this in Struts mailing list but I can't seem to get an >> answer on any other discussion groups. I've always had great results >> getting >> good answers here so here goes... >> >> I have a Filter in my app that uses the request.getServletPath() method >> to >> get the name of the page being invoked without the context path. >> >> This worked fine until I try to invoke a servlet. For example, if I >> invoke a >> url like http://localhost/app1/servlet/package.ServletName the result of >> calling request.getServletPath() is '/servlet'. >> >> However, if I make the same call when I'm in the servlet the result is >> '/servlet/package.ServletName' >> >> Why does it give a different result in the filter and the servlet? >> >> Thanks! >> >> > AHH! http://tomcat.apache.org/faq/misc.html#invoker > > Use a different prefix or path for your servlets than "servlet", no > matter how tempting it is. > > - Scott > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-OT--request.getServletPath%28%29-val-not-same-in-Filter---Servlet-tf2152125.html#a5982145 Sent from the Struts - User forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]