我有一个这样的问题:我在web.xml中设置了java.lang.Exception类型上的dafault错误页面,因此它必须显示在servlet和jsp中的所有异常上。但是,当我想测试这个页面(我关闭连接)时,它不在浏览器中。在经过测试的servlet中,我使用数据库,因此如果没有连接,它将抛出异常。在servlet中,我捕获了这个异常和throw new ServletException()。同
我刚刚开始使用,当我试图在服务器上运行一个动态web项目时,我得到了这个错误:
Jan 22, 2016 7:16:51 PM org.apache.tomcat.util.digester.SetPropertiesRule关于url错误:The servlets named [action_edit_profile] and [ro.lsrs.couchfriends.controllers.ActionEditProfile] are both mapped to the url-pattern [/action_edit_profile]