Any idea guys? John kinda posted this to the wrong list. ;-) -jon ---------- From: "John McNally" <[EMAIL PROTECTED]> Reply-To: "Java Apache Users" <[EMAIL PROTECTED]> Date: Thu, 13 Jan 2000 15:56:58 -0800 To: "Java Apache Users" <[EMAIL PROTECTED]> Subject: getServletPath() bug. ---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- I am having a problem very that is hard to diagnose. I have a servlet (Turbine) that uses pathInfo to determine the response. The application works for almost all requests, but one case breaks down. A user submits the form <form action="http://host/foo/Foo/screen/AScreen/action/AAction" accept-charset="UNKNOWN" enctype="application/x-www-form-urlencoded" method="POST" name="theForm"> Turbine processes the request and everything works great except getServletPath() returns /foo instead of /foo/Foo. This only occurs for this one form submittal, I have tried method="GET" and also adding an extra hidden form variable to change the request. It always behaves the same: the servlet is called and all the parameters appear intact, but a call to req.getServletPath() returns /foo. This behavior is related to the fact that Foo is an alias. <form action="http://host/foo/Turbine/screen/AScreen/action/AAction" accept-charset="UNKNOWN" enctype="application/x-www-form-urlencoded" method="POST" name="theForm"> works exactly as the first case except now req.getServletPath() returns /foo/Turbine. Again several other forms and other requests work just fine in the aliased case and req.getServletPath() returns /foo/Foo as expected. Anyone seen this behavior before or have suggestions, some relevant property file settings are below. 1. mod_jserv.conf ApJServMount /foo /foo ApJServMount /servlets /root ApJServMount /servlet /root 2. jserv.properties # Servlet Zones parameters ########################### # List of servlet zones Apache JServ manages # Syntax: zones=[servlet zone],[servlet zone]... (Comma separated list of String) # Default: NONE # zones=root zones=root,foo # Configuration file for each servlet zone (one per servlet zone) # Syntax: [servlet zone name as on the zones list].properties=[full path to configFile] (String) # Default: NONE # Note: if the file could not be opened, try using absolute paths. root.properties=C:\Program Files\Apache Group\Apache JServ\conf\zone.properties foo.properties=C:\Program Files\Apache Group\Apache JServ\conf\foo.properties 3. foo.properties servlet.Foo.code=Turbine John McNally -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED] -- ---------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
