error-pages.xml的DTD校验出错
开发了一个网站,想用自已的错误处理页,除建了一个error.jsp外,还在merge目录中建了一个error-pages.xml文件,文件内容如下:
<error-page>
<error-code>404</error-code>
<location>/error.jsp</location>
</error-page>
<error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/error.jsp</location>
</error-page>
但保存时MyEclipse给出错误,错误行指向第二个<error-page>,错误提示为The markup in the document following the root element must be well-formed. 大概原因是第二个error-page不应该出现,我也找不到对应error-pages.xml的DTD校验文件的声明,麻烦各位帮助解决一下,先谢了!