This question is a bit OT, since it deals more with HTTP than tomcat (I think), but maybe somebody can help.
I'm (still) working with setting up filters in Tomcat, and am seeing some erratic behavior, which leads me to ask this question : Assuming I have a URL of http://www.mysite.com/myservlet.jsp?myvar=1&yourvar=2 When the browser sends this request to tomcat (which is also acting as a webserver - no apache is running), does it put everything after the ? into the QUERY_STRING HTTP variable, or does it include it in the URL request? I have a filter in place that will replace /variable/ with &variable= to allow for proper processing of variables. Here is what I observe : If I have a URL of : mysite.com/myservlet.jsp/myvar/1/yourvar/2 then it will properly translate this into : mysite.com/myservlet.jsp?myvar=1&yourvar=2 and everything works. However, we have a new requirement that we want to keep ?myvar=1 as part of the original URL, so the incoming request would look like this : mysite.com/myservlet.jsp?myvar=1/yourvar/2 and, naturally, we want it translated into mysite.com/myservlet.jsp?myvar=1&yourvar=2 but this does NOT happen. Instead, it seems like the filter is doing nothing. The only explanation I can think of is that, now that the ? is in the original request URL, the browser is taking everthing after it, stripping it out of the request URL, and putting it into the QUERY_STRING variable - so that the filter doesn't see it. The filter would only see mysite.com/myservlet.jsp and would not perform any translation. Does this make any sense? I've been reading up on HTTP all over the net, but can't find any sites that really look at how the URL request is broken down when variables are present. Any help is greatly appreciated. - Duane ps. For those of you who inquired about my success with the tomcat filter, I will post an update once I get things working ... and hopefully it will help some of you as well. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
