>>>>> "Victor" == Victor Batista <[EMAIL PROTECTED]> writes:

    Victor> Hello!
    Victor>     How can I print the value of a property (in one iteration) whose value 
is a
    Victor> key to a message stored on the application MessageResources.

    Victor>     <logic:iterate id="item" name="xpto" >
    Victor>             <bean:write name="item" property="foo" />
    Victor>     </logic:iterate>

    Victor>     Object Xpto has a method getFoo() which returns a String which is a 
key to
    Victor> a MessageResources message.
    Victor>     How can I do this?

Do you want to print the key, or the message stored at the key?  I would think
the latter is more likely.  This is exactly what the "<bean:message>" tag
does.  Use the "name" and "property" attributes.  I got this straight from the
Struts API documentation.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP



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

Reply via email to