java.lang.IllegalStateException: Must have the StrutsPrepareFilter execute before this one

Servlet.service() for servlet [jsp] in context with path [/struts2Study] threw exception
java.lang.IllegalStateException: Must have the StrutsPrepareFilter execute before this one
出现这个异常说明web.xml配置出现错误,说明没有 StrutsPrepareFilter过滤器,在web.xml中配置成org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter,而不是org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter,

posted @ 2016-12-13 23:45  冷漠脸  阅读(1822)  评论(0编辑  收藏  举报