Hello Marco,
maybe this will help (using struts-el):
<bean-el:message key='prompt.productType.${product.productType}'/>
Dima.
Thursday, March 25, 2004, 6:02:54 PM, you wrote:
MM> Hi all,
MM> I was wondering if anyone of you have a solution
MM> For this dilemma.
MM> I have a collectin of product DTOs to show on my jsp. One of
MM> DTO's property is, let's say, the type, which is listed in number.
MM> (let's say, 10 or 20).
MM> ON the DTO I will have the value 10,20 ecc but on the jsp I have to
MM> display
MM> The corresponding string (let's say, HouseProduct or Car or something
MM> else) which is listed in application.resources.
MM> I am looping thru the collection using logic:iterate, and
MM> as I have found out myself, following code does not work
MM> <bean:message key='prompt.productType.<bean:write name="product"
MM> property="productType">'/>
MM> basically in app.resources I will have
MM> prompt.productType.10=HouseProduct
MM> prompt.productType.20=Car
MM> etc..
MM> above, I am outputting the message prompt.productType.(productType)
MM> how can I solve my dilemma, keeping in mind that I am using also
MM> logic:iterate to loop thru the collection?
MM> With best regards
MM> marco
MM> ---------------------------------------------------------------------
MM> To unsubscribe, e-mail: [EMAIL PROTECTED]
MM> For additional commands, e-mail: [EMAIL PROTECTED]
--
Best regards,
Dmitrii mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]