GF wrote:
But how can I assign a string to a variable?
Something like:
<s:set name="personName" value="John Jackson"/>
Hello, <s:property value="#personName"/>. How are you?
I tried it but seems not to work..
The value attribute is treated an OGNL expression so "John Jackson"
means its trying to access a property with that name.
Instead, you need to tell it you're using a string literal in OGNL:
<s:set name="personName" value="%{'John Jackson'}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]