摘要: struts2 ognl 调用静态方法用ognl的静态调用<s:propertyvalue="%{@java.lang.System@currentTimeMillis()}"/>来显示,发现结果集为空.查了好多资料都发现这个是正确的引用,困惑......最后在查struts2.1.2的文档时发现struts2.1.2中加了很多配置元素,其中有一个名为struts.ognl.allowStaticMethodAccess的配置项在文档的struts.properties的例子中:###WhethertoallowstaticmethodaccessinOGNLe 阅读全文
posted @ 2012-06-08 18:16 狼里格朗 阅读(1797) 评论(1) 推荐(0) 编辑