- 博客(1)
- 资源 (3)
- 收藏
- 关注
转载 actionMessages(),actionError()介绍
尽管Struts框架提供了有效的异常处理机制,但不能保证处理所有的错误,这时Struts框架会把错误抛给Web容器,在默认情况下Web容器会向用户浏览器直接返回原始信息。如果想避免直接让用户看到这些原始信息,可以在web.xml中配置元素,以下代码演示了如何避免用户看到HTTP 404、HTTP 500错误和Exception异常。web.xml: 404 /exception/e
2007-10-15 10:20:00 786
ping程序代码
ping程序代码
typedef struct iphdr
{
unsigned int h_len:4; // length of the header
unsigned int version:4; // Version of IP
unsigned char tos; // Type of service
unsigned short total_len; // total length of the packet
unsigned short ident; // unique identifier
unsigned short frag_and_flags; // flags
unsigned char ttl;
unsigned char proto; // protocol (TCP, UDP etc)
unsigned short checksum; // IP checksum
unsigned int sourceIP;
unsigned int destIP;
}IpHeader;
2011-09-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人