You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Patrick Thomas <ps...@gmail.com> on 2005/07/29 23:37:18 UTC

jsp:include params

Hi All,

When jsp:include-ing a page, I see that params from the calling page
are also passed on to the called page.

Example:

caller.jsp: (hypothetically called with param1 = val1) 
<jsp:include page="callee.jsp">
   <param name="param2" value="val2">
</jsp:include>

callee.jsp:
Sees request variables param2 (of course) *and* param1.

This is specified by the spec, so everything's okay in that regard,
but is there a way to have it *not* pass on the callers vars to the
callee? It seems like there are several types of situations where one
would want to use a jsp:include and be able to explicitly control the
parameters it receives.

If there isn't a way to do it, does anyone know the rationale for not
providing the option?

Cheers,
PST

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org