ognl调用静态方法失败
已添加<constant name="struts.ognl.allowStaticMethodAccess" value="true"></constant>
警告信息:
二月 19, 2015 10:20:12 上午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: Target class [class com.keysun.model.S] or declaring class of member type [public static java.lang.String com.keysun.model.S.s()] are excluded!
二月 19, 2015 10:20:12 上午 com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn
警告: Target class [class java.lang.Math] or declaring class of member type [public static int java.lang.Math.max(int,int)] are excluded!
楼主问题解决了吗?我也遇到这个问题了