已经G过的方法:
struts.xml中将选项struts.ognl.allowStaticMethodAccess设置为true 调个<s:property value="%{@java.lang.System@currentTimeMillis()}" /> 也不行版本是2.1.6和解呢?
struts.xml中将选项struts.ognl.allowStaticMethodAccess设置为true 调个<s:property value="%{@java.lang.System@currentTimeMillis()}" /> 也不行版本是2.1.6和解呢?
public String getCurrentTime(){
return System.currentTimeMillis();
}然后再在页面上写<s:property value="currentTime" />
@com.CM@FormatNumber(account)<s:set name="content" scope="request" value="@com.CM@FormatNumber(account)"/>${content}这个写法我也试了一下,应该和上面的是一个效果,CM都没有执行到