Hi,
Can any body explain the following to me, I don't quite grok it. I have
added a property value via my action
ActionContext ctx = ActionContext.getContext();
ctx.put("contextKey", "developer.page.logout");
In the jsp I have the following:
1 <s:property value="%{contextKey}"/>
2 <s:property value='%{contextKey+".title"}'/>
3 <s:property value='%{#contextKey+".title"}'/>
4 <s:property value='%{"string1"+".title"}'/>
This results in an output:
1 developer.page.logout
2 null.title
3 developer.page.logout.title
4 string1.title
Why does 2 give me a null output and 1 not, and 3 give me what I want.
What is the significance of the # in this case?
Cheers
Caleb.
--
View this message in context:
http://www.nabble.com/OGNL-struts-property-tf4770568.html#a13645884
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]