hi Vinicius,

this works fine.
the correct syntax for me is:
 <s:url id="image" value="%{getText('common.themes.'+#attr.THEME +
'.reference.edit.24')}"/>
because the variable THEME is stored in the request or session or action.

thanx a lot.

regards marco


Vinicius Medeiros Peretti wrote:
> 
> Hi Marco
> I use:
> value="%{getText( #Variable+'.string.constant.label.'+OtherVariable)}"
> 
> try:
> 
> <s:url id="image"
> value="%{getText('common.themes.'+#attr+'.THEME.reference.edit.24')}"/>
> 
> regards,
> Vinicius
> 
> Marco Machmer wrote:
>> hi folks,
>>
>> can i use #attr inside the getText()-methode?
>> here my problem:
>> <s:url id="image"
>> value="%{getText(common.themes.#attr.THEME.reference.edit.24)}"/>
>> the key will not be found.
>>
>> whats wrong
>>
>> regards marco machmer
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--getText%28%29-and--attr-tf4751113.html#a13602772
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to