A
adamcrume
I have a servlet with a mapping like /myServlet/* which serves content
based on the URL. It works great when it gets called alone. However,
I also want to be able to include it in a jsp using <jsp:include
page="/myServlet/stuff"/>. The problem is that in that case the
servlet gets the request URL of the JSP, not itself, so it doesn't
know to serve up "stuff". Is there a way to do this purely using the
URL, without passing it parameters?
based on the URL. It works great when it gets called alone. However,
I also want to be able to include it in a jsp using <jsp:include
page="/myServlet/stuff"/>. The problem is that in that case the
servlet gets the request URL of the JSP, not itself, so it doesn't
know to serve up "stuff". Is there a way to do this purely using the
URL, without passing it parameters?