error-page元素 中的location元素的值必须从a/开始。  其中的a/指的是什么?请知道的告诉小弟下~~~~web.xml配置信息中的元素

解决方案 »

  1.   

    该说的 error-page 的 location 要以 a/ 开始啊?明明是要以 / 开始的。下面这段是 Servlet 2.5 Specification, JSR 154, p.136 上关于 web.xml error-page 元素的说明:The error-page contains a mapping between an error code or an exception type to the path of a  resource in the Web application. The sub-element exception-type contains a fully qualified class name of a Java exception type. The sub-element location element contains the location of the resource in the web application relative to the root of the web application. The value of the location must have a leading ‘/’.