定制错误信息页面 应该是<location>还是<url-pattern>啊??我楼主解决了说下,呵呵. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个http://localhost:8080/WebJSP/error404.html 没有问题吧? 配置文件没错。。去掉Internet选项--高级---显示友好的http错误信息前面的√再试试看 <error-page> <error-code>404</error-code> <location>/error404.html</location></error-page>是location没错,我工程也这么写的,下面是我工程里面的<error-page> <error-code>404</error-code> <location>/shtml/wrongpage.html</location></error-page><error-page> <error-code>500</error-code> <location>/shtml/errpage.html</location></error-page>没问题,过滤器用url-pattern<filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern></filter-mapping><filter-mapping><filter-name>myfilter</filter-name><url-pattern>/*</url-pattern></filter-mapping> SSH配置p6spy没有日志文件 java 将树形数据转换为json格式??? 关于hibernate annotation 的manyToMany的映射的疑问 JAVA CORE看完了,接下来该怎么做啊 apache+tomcat如何配置域名呢. jsp显示excel表格的内容 STRUTS的 重定向 哪里有WSAD5.0+DB2开发EJB实例(在线等待) 郁闷!找不到工作!有公司要我吗? 参加吗?J2EE联盟----共同的目标,共同的追求 大家怎么处理权限这样的问题啊? 关于2个session联合使用的问题。
去掉
Internet选项--高级---显示友好的http错误信息
前面的√再试试看
<error-code>404</error-code>
<location>/error404.html</location>
</error-page>
是location没错,我工程也这么写的,下面是我工程里面的
<error-page>
<error-code>404</error-code>
<location>/shtml/wrongpage.html</location>
</error-page><error-page>
<error-code>500</error-code>
<location>/shtml/errpage.html</location>
</error-page>
没问题,
过滤器用url-pattern
<filter-mapping>
<filter-name>UrlRewriteFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping><filter-mapping>
<filter-name>myfilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>