You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ben Anderson <st...@hotmail.com> on 2003/12/09 16:42:48 UTC

RE: Property Declaration Annoyances

<c_rt:set var="key" value="<%= myKey %>"/>
<c:set var="mapper" value="${myMap[myKey]}"/>
<c:out value="${mapper.myProperty}"/>


>From: "Joe Hertz" <jh...@patriot.net>
>Reply-To: <jh...@patriot.net>
>To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
>Subject: Property Declaration Annoyances
>Date: Tue, 9 Dec 2003 10:43:22 -0500
>
>As of JSP 1.1 (and apparently 1.2 as I'm experiencing this with Tomcat
>4.x) the following does not work:
>
><bean:write name="myBean" property="myMap.<%=myKey%>.myProperty"/>
>
>One has to declare the entire String and implement it like this:
>
><bean:write name="myBean" property="<%=myString%>"/>
>
>Anyone know if this has changed since 1.2? Is there a better approach?
>Can EL help me get around this more gracefully?
>
>-Joe
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>

_________________________________________________________________
Our best dial-up offer is back.  Get MSN Dial-up Internet Service for 6 
months @ $9.95/month now! http://join.msn.com/?page=dept/dialup


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