在struts2中访问JSP页面出现异常:
org.apache.jasper.JasperException: The Struts dispatcher cannot be found
一般来说是因为过滤器不能过滤jsp文件,需要在web.xml中加入过滤的信息
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>