web.xml中 error-page的正确用法
来源:互联网 发布:mac开机客人用户 编辑:程序博客网 时间:2024/05/20 09:25
<!--errorpage handler --> <error-page> <error-code>404</error-code> <location>/WEB-INF/jsp/errors/error.jsp</location> </error-page> <error-page> <error-code>500</error-code> <location>/WEB-INF/jsp/errors/error.jsp</location> </error-page> <error-page> <error-code>414</error-code> <location>/WEB-INF/jsp/errors/error.jsp</location> </error-page> <error-page> <error-code>505</error-code> <location>/WEB-INF/jsp/errors/error.jsp</location> </error-page> <error-page> <error-code>400</error-code> <location>/WEB-INF/jsp/errors/error.jsp</location> </error-page>
public static CheckOutAddress fromHomeAddress(HomeAddr homeAddr) { CheckOutAddress address = new CheckOutAddress(); address.setAddressId(String.valueOf(homeAddr.getId())); address.setCountryId(String.valueOf(homeAddr.getCountry().getId())); address.setCountryName(homeAddr.getCountry().getRegionName()); address.setDetailAddress(homeAddr.getDetailAddress()); address.setFirstName(homeAddr.getFirstName()); address.setLastName(homeAddr.getLastName()); address.setIsDefaultAddress(String.valueOf(homeAddr.getIsDefault())); address.setMobilePhone(homeAddr.getMobilePhone()); address.setCountryPhoneCode(homeAddr.getCountryPhoneCode()); address.setZipCode(homeAddr.getZipCode()); return address; }
<error-page> <exception-type>java.lang.NullPointerException</exception-type> <location>/WEB-INF/jsp/errors/error.jsp</location></error-page>
阅读全文
0 0
- web.xml中 error-page的正确用法
- web.xml中 error-page的正确用法
- web.xml中error-page的元素
- web.xml中error-page的疑惑
- 在tomcat的web.xml文件中配置error-page
- web.xml中配置<error-page>标签不起作用的问题
- 在web.xml中配置error-page
- 在web.xml中配置error-page
- 在web.xml中配置error-page
- 在web.xml中配置error-page
- 在web.xml中配置error-page
- web.xml中配置<error-page>标签
- web.xml中配置error-page
- 在web.xml中配置error-page
- web.xml中配置error-page
- web.xml的<error-page>不起作用
- java web 在web.xml中配置error-page
- web.xml中的 error-page
- nginx tomcat ip port
- 选择器
- dwz 按钮样式
- 【转】使用dos2unix批量转换文件
- 算法设计与应用基础系列14
- web.xml中 error-page的正确用法
- redhat上安装jdk,maven(记录)
- SpringBoot打包成jar在服务器上无法访问JSP页面问题
- Excel 【小型成绩分析系统初稿】(功能及适应性有待完善)
- Android中Audio框架
- Go实战--go中函数(function)和方法(method)的使用(The way to go)
- 如何使用jedis对redis数据库操作
- ORACLE DATAGUARD传输原理
- 初学javascript,整理整理笔记(二)