Hi Ben, I have been trying to reproduce this behavior and have come to the following assumption - your TestServlet servlet mapping uses the url pattern /TestServlet. Am I correct?
I set up a mapping for my SnoopServlet using url pattern /snoop and requested http://localhost:8100/snoop/more/path/info and see the same results that you do - 404. However, when I use the url pattern /snoop/* I get the servlet path= /snoop and path info=/more/path/info as expected. While this may differ from JRun 3.x it is in compliance with the Servlet 2.3 spec (and matches the RI's behavior) and is touched upon in the example below from the spec. Hope this helps, Tom Ruggles JRun QA Table SRV.1: Example Context Set Up ContextPath /catalog Servlet Mapping Pattern: /lawn/* Servlet: LawnServlet Servlet Mapping Pattern: /garden/* Servlet: GardenServlet Servlet Mapping Pattern: *.jsp Servlet: JSPServlet Table SRV.2: Observed Path Element Behavior Request Path Path Elements /catalog/lawn/index.html ContextPath: /catalog ServletPath: /lawn PathInfo: /index.html -----Original Message----- From: Ben Groeneveld [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 3:08 PM To: JRun-Talk Subject: Potential JRun 4 getPathInfo Migration Issue I am having trouble migrating a servlet that uses request.getPathInfo(). We use a URL like: http://127.0.0.1:8100/tJRun4/TestServlet/extraParams?misc=stuff&more=NotEnough I developed a little testcase which presents the above as follows on JRun 3.0: doGet logRequestParameters request.getPathInfo(): /extraParams logRequestParameters request.getQueryString(): misc=stuff&more=NotEnough logRequestParameters request.getPathTranslated(): C:\usr\local\jrun-3.0\servers\default\tJRun4\extraParams logRequestParameters request.getRequestURL(): /tJRun4/TestServlet/extraParams logRequestParameters request.getParameterValues(): misc:[stuff] logRequestParameters request.getParameterValues(): more:[NotEnough] On JRun 4 I just get in the log: error Requested resource /tJRun4/TestServlet/extraParams not found Anyone have a clue as to what's up or what we're doing wrong? Thanks, BenG. -- Ben Groeneveld Information Concepts, Inc., 115 N.W. Oregon, Suite 30, Bend, OR 97701 Mailto:[EMAIL PROTECTED], phone:541.388.3611, cell:208.520.6488 ______________________________________________________________________ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
