struts2中ognl标签报错的原因
在jsp文件中,我们可以利用struts2的标签库,只需要在文件顶部 <%@ taglib prefix="s" uri="/struts-tags" %> 但是,有时候会报错,找了半天,原来是配置文件的关系 在web.xml文件中,需要加上如下 [code="xml"] struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp ... struts-cleanup /* [/code]