web.xml中 error-page的正确用法
来源:互联网 发布:写作文软件app 编辑:程序博客网 时间:2024/05/17 12:50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!--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
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}
1
2
3
4
<
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
- hdu4941map应用
- HDU 5558 Alice's Classified Message(后缀自动机)
- 数据结构实验之栈八:栈的基本操作
- 2016弱校连萌十一专场10.3 部分题解
- 数据库之三范式
- web.xml中 error-page的正确用法
- linux挂载与卸载 mount umount
- 自定义高度与宽度都相等的RelativeLayout
- 磕磕绊绊,Spring+Mybatis多数据源配置mysql+oracle
- js垃圾回收机制
- 从留言板开始做网站(七)——服务端的数据验证和安全输入
- MyBatis浅谈
- Java面向对象之泛型
- .bat文件详解