struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k3v1n <mitn...@email.it>
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.

Example:

My method...

class org.mydomain.MyClass
method myMethod(HttpServletRequest)

in jsp

<s:if test="%{@org.mydomain.MyClass@myMethod(request) != null}">
aaa
<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: http://struts.1045723.n5.nabble.com/access-static-method-with-request-parameter-tp4505653p4505653.html
Sent from the Struts - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message