struts2 ognl 调用静态方法
摘要:
用ognl的静态调用<s:propertyvalue="%{@java.lang.System@currentTimeMillis()}"/>来显示,发现结果集为空.查了好多资料都发现这个是正确的引用,困惑......最后在查struts2.1.2的文档时发现struts2.1.2中加了很多配置元素,其中有一个名为struts.ognl.allowStaticMethodAccess的配置项在文档的struts.properties的例子中:###WhethertoallowstaticmethodaccessinOGNLexpressionsornotstru 阅读全文
posted @ 2012-03-03 11:27 Snail_Renie 阅读(596) 评论(0) 推荐(0)
浙公网安备 33010602011771号