摘要:
访问字符串变量:<@资源路径+变量>; 访问方法:<@资源路径+方法名>;在struts.xml配置中<constant name="struts.ognl.allowStaticMethodAccess" value="true"></constant> 即可; 阅读全文
摘要:
对于strut2中的标签<s:bean/>,<s:date/>,<s:include/><s:url/>如果在<s:set value="悟空"/>无法显示,需要换成"'悟空'"即可,页面中需要引入ognl,<%@taglib prefix="s" uri="/struts-tags"%> 阅读全文