Marco, can you use bean:define and a scriptlet code
inside bean:message ? Something like :

<bean:define id="suffix" name="product"
property="productType"/>
<bean:message
key='<%="prompt.productType."+suffix%>'/>


 --- Marco Mistroni <[EMAIL PROTECTED]>
escreveu: > Hi all,
>       I was wondering if anyone of you have a solution
> For this dilemma.
> I have a collectin of product DTOs to show on my
> jsp. One of 
> DTO's property is, let's say, the type, which is
> listed in number.
> (let's say, 10 or 20).
> ON the DTO I will have the value 10,20 ecc but on
> the jsp I have to
> display
> The corresponding string (let's say, HouseProduct or
> Car or something
> else) which is listed in application.resources.
> 
> I am looping thru the collection using
> logic:iterate, and
> as I have found out myself, following code does not
> work
> 
> <bean:message key='prompt.productType.<bean:write
> name="product"
> property="productType">'/>
> 
> 
> basically in app.resources I will have
> prompt.productType.10=HouseProduct
> prompt.productType.20=Car
> 
> etc..
> 
> above, I am outputting the message  
> prompt.productType.(productType)
> 
> how can I solve my dilemma, keeping in mind that I
> am using also
> logic:iterate to loop thru the collection?
> 
> With best regards
>       marco
> 


______________________________________________________________________

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html

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

Reply via email to