struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k3v1n <>
Subject access static method with request parameter
Date Mon, 20 Jun 2011 09:23:18 GMT
Hi all,

I need use struts 2 tag with static method.


My method...

class org.mydomain.MyClass
method myMethod(HttpServletRequest)

in jsp

<s:if test="%{@org.mydomain.MyClass@myMethod(request) != null}">
<s:if />

but in myMethod, request param is always null! Why?

I think my OGNL expression is wrong.

I set in my struts.xml this constant:
<constant name="struts.ognl.allowStaticMethodAccess" value="true" />

Help me please.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message