注意:
error1:注意web-app_2_5.xsd,这个schema的版本问题。在大于2.3时,下面的会报错:
<taglib>
<taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
解决:放到标签<jsp-config></jsp-config>中
一。页面错误异常处理:
<error-page>
<error-code>404</error-code>
<location>/error_404.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/error_null.jsp</location>
</error-page>