struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gemes Tibor <ge...@regens.hu>
Subject Re: jsp:include with variables in struts
Date Thu, 05 Dec 2002 14:16:15 GMT
2002. december 5. 15:11 dátummal michael.j.coyle@jpmorgan.com ezt írtad:
> Hi,
>
> 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
> ="true"/>
> </logic:iterate>

You cannot insert a taglib into a taglib. So try 

<logic:iterate id="section" name="screenForm" property="sectionList">
       <jsp:include page="<% section.getUrl() %>" flush="true"/> 
</logic:iterate>

Tib

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message