I am running Tomcat on top of Apache. An HTTP request for a URL that has 'CSP' is passed by Apache to Tomcat. This works fine for http://localhost/CSP/Test.jsp
. Now I want to add sessions to my JSP pages. As an experiment, I disabled cookies on my browser, and I have
Test.jsp rewritten as follows:
<a href="<%= response.encodeURL("/CSP/T
According to the JSP specifications, the session information is encoded and assigned to 'jsessionid', and this is appended to the URL following a semi-colon. However, when I click on the link above, Apache returned 404 Not Found. It seems that the semi-colon and extra string at the end of the URL has made it an invalid URL. Apache did not even pass the request to Tomcat even though the URL contains 'CSP'.
On this EE website, I noticed that with URL rewriting, the 'jsessionid' is appended following a question mark, not a semi-colon. How do I make my JSP page work?