In a Struts 2 project, consider below key in message resources:
export.filename.accountsummary=customer ${export}
The action has export
filed with setter and getter.
If you call the getText("export.filename.accountsummary")
struts will automatically call the getExport()
and fill it with correct value. (I think that struts use OGNL too lookup the resource messages that are endorse with ${}
) Is this correct ?!
I try to use customer ${#sessionScope.CurrentUser.userName}
an expected that struts use this OGNL expression but it did not worked.