Struts2
拦截器
用global-result简化配置
返回自定义404页面
web.xml里配置:
<error-page>
<error-code>404</error-code>
<location>/404error.jsp</location>
</error-page>
web.xml里配置:
<error-page>
<error-code>404</error-code>
<location>/404error.jsp</location>
</error-page>