You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Kennedy <da...@swanlabs.com> on 2005/03/08 14:56:02 UTC
Easy: Including a file with a parameter?
I have several pages which include a header like this:
<%@include file="../includes/header.jspf"%>
I would like to pass a resource bundle key into the header so that
<bean:message key="passed.in.key"/> can be used to customise the
header for this page.
I can see how jsp:include or maybe bean:include can be used to do this,
but neither solution is suitable for other/legacy reasons. I tried using
bean@define but can't figure out how to refer to the variable inside the
page such that the compiler is happy.
Anyone got an example? Thanks,
--
David Kennedy
Swan Labs
http://www.swanlabs.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org