Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 43286 invoked by uid 500); 6 Oct 2001 01:30:49 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 43275 invoked from network); 6 Oct 2001 01:30:49 -0000 Message-ID: <004701c14e06$8e59baa0$5a2b7ad8@expertrade.com> Reply-To: "David Wall" From: "David Wall" To: References: Subject: URL bug for jasper or "per spec"? Date: Fri, 5 Oct 2001 18:31:00 -0700 Organization: Yozons, Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm running Tomcat 3.2.3 using Apache with mod_jk. The mod_jk mount configuration for Apache is: JkMount /ssd/servlet/* ajp13 JkMount /ssd/*.jsp ajp13 I have an URL that is designed such that it's supposed to run my servlet, but still contain a file name since it's for a file download servlet. Some browsers use the name from the URL to select the "save as" name when you do a download (yes, we also set the Content-disposition for those browsers that will deal with it). The URL will look like: /ssd/servlet/GA/file.txt -- which would download a file called 'file.txt' from our servlet mapped at /ssd/servlet/GA. Normally, the 'file.txt' is returned as the query string for my servlet. But, if I have a file that ends in .JSP: /ssd/servlet/GA/file.jsp Tomcat doesn't run the GA servlet with 'file.jsp' as the query string. Instead. Tomcat thinks this must be a JSP and of course doesn't like it and produces an error. The Jasper log shows the confusion: 2001-10-05 18:27:44 - ServletPath: /servlet/GA/file.jsp 2001-10-05 18:27:44 - PathInfo: null 2001-10-05 18:27:44 - RealPath: /home/tomcat/jakarta-tomcat-3.2.3/WebSsd2/remoteapps/ssd/servlet/GA/file.jsp 2001-10-05 18:27:44 - RequestURI: /ssd/servlet/GA/file.jsp Is this a bug in jasper, in that it doesn't recognize that it should find the GA servlet, or is this the way it's supposed to work according to spec since the URL ends with .jsp? David