Ramanathan RV wrote:
Hello
I wish to call a static method from the view and make the results available
to my view. I believed I would have to do something like this to achieve
that :
<s:set name="docs" scope="request"
value="@[EMAIL PROTECTED](product)"/>
The above piece of code indeed calls the method. But the result doesnt get
set on the variable as expected. Am I missing something here?
Provided static method access is enabled (off by default), the line
above will work.
It's possible that the problem is with the way you're accessing docs
(are you using %{#docs})?
To enable static method access set the struts2 constant .
struts.ognl.allowStaticMethodAccess=true
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]