struts2中访问静态资源

访问字符串变量:<@资源路径+变量>;

访问方法:<@资源路径+方法名>;在struts.xml配置中<constant name="struts.ognl.allowStaticMethodAccess" value="true"></constant> 即可;

posted @ 2017-03-28 17:25  虚竹一梦  阅读(2173)  评论(0编辑  收藏  举报