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]

Reply via email to