Hi I'm using apache+mod_proxy+mod_rewrite as a tomcat frontend. A "foo" war is deployed at /foo context path under tomcat. The /foo path is not public, apache has a rewrite rule defined as : /bar/* rewrites internally to /foo/*.
I'm using jstl and its <c:url value="page.jsp"> for every url in my jsps to gain the ;jsessionid from encodeURL whenever jsessionid cookie is not yet set (1st requests) Now my question is : the <c:url> results in a "/foo/page.jsp;jsessionid=..." I want the result instead as /bar/pages.jsp;jsessionid=.... Should I go straight for a HttpServletResponseWrapper replacing every /foo/ with /bar/ or is there a more elegant way ? If the apache rewrite rule is modified - say, to /barv2/, is it ok to use mod_headers to pass the original path instead of hardcoding /bar/ ? thanks -- http://laurentperez.fr J2EE, HTML5, JS, CSS3