I need to construct a message key dynamically, and am looking for a 
solution that does not use scriptlets. Can anyone suggest an alternative 
to the code below, which works but is ugly.

<nested:define id="type" property="typeName"/>
<% String key = "type.description." + type; %>
<div class="widgetLabel"><bean:message key='<%=key%>'/></div>

Thanks very much,

Andrew


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to