struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Graham" <dgraham1...@hotmail.com>
Subject Re: c:out in tiles insert tag
Date Thu, 27 Mar 2003 19:08:36 GMT
You can't use a tag as another tag's attribute value.

David



>From: Peter Smith <psmith@infonow.com>
>Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>To: Struts Users Mailing List <struts-user@jakarta.apache.org>
>Subject: c:out in tiles insert tag
>Date: Thu, 27 Mar 2003 11:35:20 -0700
>
>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
>


_________________________________________________________________



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