Going on...
<tiles:useAttribute id="listQuestions" name="listQuestions"
classname="java.util.List" />
<c:forEach items="${listQuestions}" var="question">
<c:out value="${question}"/>
<tiles:insert name="<%=question%>" flush="false" />
</c:forEach>
Gives me : question cannot be resolved
Seems to me it's a basic jsp knowledge... That i don't have.
Rémi
Le Lundi 11 Juillet 2005 12:13, Leon Rosenberg a écrit :
> use
> flush=false
>
> Flush=true works only in a top page, if you already included another page
> (or tile) yor aren't allowed to flush. At least in tomcat.
>
> Regards
> Leon
>
> > -----Ursprüngliche Nachricht-----
> > Von: Dewitte Rémi [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 11. Juli 2005 13:59
> > An: Struts Users Mailing List
> > Betreff: Re: Tiles
> >
> > Which does not work :
> > Can't insert page '/Q/firstName.jsp' : Illegal to flush
> > within a custom tag Hum ... Seems to be a bit complicated !
> > Thanks.
> >
> > Le Lundi 11 Juillet 2005 11:37, Leon Rosenberg a écrit :
> > > <logic:iterate name="listQuestions" id="question" toScope="page"
> > > type="java.lang.String">
> > > <tiles:insert name="<%=question%>" flush="true" /> </logic:iterate>
> > >
> > > Unfortunately you can't get rid of the <%=question%>, but
> >
> > it would be
> >
> > > the only java code in the page.
> > >
> > > Regards
> > > leon
> > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Dewitte Rémi [mailto:[EMAIL PROTECTED]
> > > > Gesendet: Montag, 11. Juli 2005 13:33
> > > > An: Struts Users Mailing List
> > > > Betreff: Re: Tiles
> > > >
> > > > I answer myself. I achieved doing this :
> > > > <tiles:useAttribute id="listQuestions" name="listQuestions"
> > > > classname="java.util.List" />
> > > > <%
> > > > java.util.Iterator i=listQuestions.iterator(); while(
> >
> > i.hasNext() )
> >
> > > > {
> > > > String question= (String)i.next(); %>
> > > > <tiles:insert name="<%=question%>" flush="true" />
> > > > <br>
> > > > <%
> > > > }
> > > > %>
> > > >
> > > > Is there any way to do this with tags ? I would like my
> >
> > presentation
> >
> > > > pages don't have java code like this.
> > > >
> > > > Rémi
> > > >
> > > > Le Lundi 11 Juillet 2005 13:20, Dewitte Rémi a écrit :
> > > > > Hi !
> > > > > I make a definition in which i put a list of tiles to
> >
> > include but
> >
> > > > > I can't achieve to do this eg :
> > > > > in my tiles-defs.xml :
> > > > > <definition name="page1-def" extends="baseDef">
> > > > > <put name="page" value="1"/>
> > > > > <putList name="listQuestions">
> > > > > <add value="/Q/firstName.jsp"/>
> > > > > <add value="/Q/lastName.jsp"/>
> > > > > </putList>
> > > > > </definition>
> > > > >
> > > > > And in my template, i don't know how to iterate in
> >
> > listQuestions
> >
> > > > > in order to include /Q/firstName.jsp and /Q/lastName.jsp.
> > > > > A start :
> > > > > <tiles:importAttribute/>
> > > > > <c:out value="${listQuestions}"/>
> > > > > <c:forEach items="${listQuestions}" var="question">
> > > > > What to do to include question !
> > > > > </c:forEach>
> > > > >
> > > > > Maybe it's not possible...
> > > > > Thanks.
> > > > > Rémi
> >
> > --------------------------------------------------------------------
> >
> > > > -
> > > >
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --------------------------------------------------------------------
> >
> > > > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> >
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]