You cannot nest %{}, this could be a way of doing it:

<s:set name="superName" value="%{'something'}"/>
<s:set name="%{#superName}" value="'test'"/>
<s:property value="%{#request[#superName]}" />

musachy


On Mon, Nov 24, 2008 at 1:28 PM, Frank Maritato <[EMAIL PROTECTED]>wrote:

> ok, so I'm able to verify that:
>
> <s:set name="something_%{obj.id}" value="'test'"/>
>
> sets the variable name as I want it. I can verify by printing it out with
> property with a hardcoded value like this:
>
> <s:property value="something_12345" />
>
> but I cannot figure out how to do it without using the hardcoded id. I've
> tried the following:
>
> <s:property value="something_%{#obj.id}" />
> <s:property value="#something_%{obj.id}" />
> <s:property value="something_%{obj.id}" />
> <s:property value="%{something_#obj.id}" />
> <s:property value="something_#obj.id" />
>
> but nothing works. Can anyone help here?
>
>
>
>
> Frank Maritato wrote:
>
>> I need to set a variable that is specific to the object id I'm working
>> with. I tried something like this:
>>
>> <s:set name="something_%{obj.id}" value="'test'"/>
>>
>> and then later in the page:
>>
>> <s:property value="#something_%{obj.id}" />
>>
>> but didn't get anything. Is there a different way to do this?
>>
>
> --
> Frank Maritato
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to