web.xml之welcome-file-list、error-page
2011-09-13 15:09
323 查看
welcome-file-list
定义:
作用:用来指定WEB应用首页名称。
error-page
定义:
或者
作用:用来指定发生特定htm的error-code或发生特定Java异常时访问的Web页面
定义:
<welcome-file-list> <welcome-file>login.jsp</welcome> </welcome-file-list>
作用:用来指定WEB应用首页名称。
error-page
定义:
<error-page> <error-code>错误代码(如404)</error-code> <location>对应的页面(如/404.jsp)</location> </error-page>
或者
<error-page> <exception-type>完整的Java异常类型(如java.lang.Exception)</exception-type> <location>对应的页面(如/error.jsp)</location> </error-page>
作用:用来指定发生特定htm的error-code或发生特定Java异常时访问的Web页面
相关文章推荐
- web.xml(7)_mime-mapping、welcome-file-list、error-page
- web.xml(7)_mime-mapping、welcome-file-list、error-page
- 关于web.xml中的<welcome-file-list>中的默认首页文件
- web.xml中的welcome-file-list不起作用
- web project 中利用 web.xml 中的 默认welcome-file-list 做跳转
- java web.xml welcome-file-list的默认值
- 关于web.xml中的welcome-file-list(欢迎页)
- 关于web.xml中的<welcome-file-list>中的默认首页文件
- 关于web.xml中的welcome-file-list(欢迎页)
- web.xml中的welcome-file-list
- 关于web.xml中<welcome-file-list>
- 【XML】web.xml中welcome-file-list的作用
- web.xml里面的welcome-file-list是什么意思
- Jetty下web.xml的welcome-file-list无效
- java web.xml welcome-file-list的默认值
- web.xml中的welcome-file-list不起作用
- java web.xml welcome-file-list的默认值
- web.xml中的welcome-file-list(欢迎页)
- web.xml 配置了 error-page 不能跳转到指定页面
- web.xml中的welcome-file认识