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


From: "Joe Hertz" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



Reply via email to