tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Thomas <pstho...@gmail.com>
Subject jsp:include params
Date Fri, 29 Jul 2005 21:37:18 GMT
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


Mime
View raw message