Hi all, I was hoping someone could explain something. I'm not sure if this is a Tomcat issue or a JSP issue.
I'm using Tomcat v4.1.8 on Win 2k. It seems I cannot obtain the "extra path" information at the end of a URL from within a JSP. But, if I run the servlet that was generated from the JSP, I *can* get the extra path information with no problem. For example, below is a simple JSP (named Test.jsp) which I invoke using the URL below. Notice "/extra/path/info" is the extra path information at the end of the URL: http://localhost/t/Test.jsp/extra/path/info: <html><head><title>Test</title></head> <body> <p> This is a test... <%= "Path Info: " + request.getPathInfo() %> </p> </body></html> When I run this JSP it produces the output: "This is a test... Path Info: null" Notice the request.getPathInfo() is returning null. Now, if I take the generated servlet class file and place it in my WEB-INF/classes directory, and I run the servlet with this URL: http://localhost/t/servlet/org.apache.jsp.Test_jsp/extra/path/inf o I get this output: "This is a test... Path Info: /extra/path/info" So, why can a JSP not have access to the extra path information? Is this a Tomcat configuration issue or something else? Thanks... Tony =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
