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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to