struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: jsp:include with variables in struts
Date Thu, 05 Dec 2002 15:02:33 GMT
Or with JSTL:

<logic:iterate id="section" name="screenForm" property="sectionList">
  <c:import url="${section.url}"/>
</logic:iterate>

or

<c:forEach var="section" items="${screenForm.sectionList}">
  <c:import url="${section.url}"/>
</c:forEach>

Quoting Gemes Tibor <gemes@regens.hu>:

> 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>
> 


-- 
Kris Schneider <mailto:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

--
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