Kenton wrote:
I'm preparing my Struts app for Internationalization and am moving all
strings to .properties files.
How do I do this:
<bean:message bundle="bundlekey/module" key="some.string.key"
arg0="<tiles:getAsString name="objType"/>"/>
Obviously, that doesn't work, but you can probably see what I want to do.
How do I do that?
Use bean:define (or c:set) to place the value from Tiles into a
scripting variable, then reference that in the bean:message tag,
something like:
<c:set var="objType"><tiles:getAsString name="objType"/></c:set>
<bean:message bundle="bundlekey/module" key="some.string.key"
arg0="${objType}"/>
Alternatively, you can use the JSP attribute action, something like:
<bean:message bundle="bundlekey/module" key="some.string.key">
<jsp:attribute name="arg0">
<tiles:getAsString name="objType"/>
</jsp:attribute>
</bean:message>
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]