struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject jsp:include with variables in struts
Date Thu, 05 Dec 2002 14:11:31 GMT

I wish to include a number of jsps within my main jsp. The list of include
files is retrieved from the database and stored in the ActionForm. I can
then have a piece of jsp code as follows:

<logic:iterate id="section" name="screenForm" property="sectionList">
      <jsp:include page="<bean:write name='section' property='url'/>" flush

However, this doesn't work because 'jsp:include' is parsed before
'bean:write'. It tries to include a file which is literally called

Can anyone offer a suggestion as to how I can achieve my goal? I am using
Struts 1.0.2.

Thanks in advance

This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message