Tony:
The TOMCAT documentation seems to steer clear of any discrepancies between inheriting from HttpServlet and JspServlet. Other WebServers (JWS) specifially state that you can alwas inherit from HttpServlet and used the get methods but..one CANNOT instantiate JspServlet (and consequently use get Methods) to extract information WITHOUT specifyng those specific classes (JspServlet) as "Ok to inherit"..
<%
String referringURL = request.getHeader("PATH_INFO");
%>
Hope this helps..
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of LDS.
The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way.
LDS can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
_______________________________________________
>From: Tony LaPaso <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: ?? JSP and request.getPathInfo() in Tomcat ?? >Date: Thu, 15 Aug 2002 23:02:57 -0500 >MIME-Version: 1.0 >Received: from mc1-f23.law16.hotmail.com ([65.54.236.30]) by hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 15 Aug 2002 21:12:41 -0700 >Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc1-f23.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.4905); Thu, 15 Aug 2002 21:05:44 -0700 >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid DE04121DF3; Thu, 15 Aug 2002 22:02:29 -0600 (MDT) >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 2457750 for [EMAIL PROTECTED]; Thu, 15 Aug 2002 22:00:45 -0600 >Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by swjscmail1.java.sun.com (Postfix) with ESMTP id 574A4485C for <[EMAIL PROTECTED]>; Thu, 15 Aug 2002 22:00:45 -0600 (MDT) >Received: from abner ([12.248.193.116]) by sccrmhc01.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20020816040448.HJWA11061.sccrmhc01.attbi.com@abner>; Fri, 16 Aug 2002 04:04:48 +0000 >Delivered-To: [EMAIL PROTECTED] >X-Priority: 3 >X-MSMail-Priority: Normal >X-Mailer: Microsoft Outlook Express 6.00.2600.0000 >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 >Message-ID: <001701c244d9$ce0e9790$74c1f80c@abner> >Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]> >Comments: To: Tomcat User <[EMAIL PROTECTED]> >Return-Path: [EMAIL PROTECTED] >X-OriginalArrivalTime: 16 Aug 2002 04:05:46.0083 (UTC) FILETIME=[32837330:01C244DA] > >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: > > > > >
>This is a test... ><%= "Path Info: " + request.getPathInfo() %> > > > > >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
Chat with friends online, try MSN Messenger: Click Here
=========================================================================== 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
