struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Smith <psm...@infonow.com>
Subject c:out in tiles insert tag
Date Thu, 27 Mar 2003 18:35:20 GMT
Hi all,

I am trying to insert a definition dynamically.  Right now, the following
works:

1: <%
2: String selectedBody = "body.tab1";
3: %>
4: 
5: <tiles:insert name="<%= selectedBody %>" flush="true" />

But I would like to use c:out instead of the scriptlet.  Here is what I have
been trying:

1: <c:set var="selectedBody">
2:   <%= selectedBody %>
3: </c:set>
4: 
5: <c:out value='${selectedBody}'/>
6: 
7: <tiles:insert name="<c:out value='${selectedBody}'/>" flush="true" />

Line 6 prints "body.tab1" correctly, but line 7 does not insert the
body.tab1 definition.  It appears the c:out is not being evaluated (I get
the same behavior if value='blah').

Any ideas?

Thanks, Peter



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


Mime
View raw message