when i used "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";
it dint work so i checked out this url and it gives a mesage saying the url
has changed and servlet 2.3 should use
 "http://java.sun.com/dtds/web-app_2_3.dtd"; i.e., without the j2ee.

 no clue what is the problem. 

still i get an error when i start my tomcat witht the new 2.3 dtd and error
page still does not work.

please let me know if you know about this.


 I am not sure if there is something to with struts or tomcat or servlet api
version on my pc.

stack trace when i start tomcat:
=====================================

XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD
Web Application 2.3//EN --> http://java.sun.com/dtd/web-app_2_3.dtd "null"

register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'jar
:file:C:\Tomcat\jakarta-tomcat-3.2.3\webapps\WebEval3\WEB-INF\lib\struts.jar
!/or
g/apache/struts/resources/struts-config_1_0.dtd'

register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'jar:file:C:\
Tomcat\jakarta-tomcat-3.2.3\webapps\WebEval3\WEB-INF\lib\struts.jar!/org/apa
che/
struts/resources/web-app_2_2.dtd'
 

-----Original Message-----
From: Steve Zhang
To: Struts Users Mailing List
Sent: 11/20/2001 1:43 PM
Subject: Re: <error-page> in web.xml and 404 HTTP error

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
<web-app>
...
after <session-config>

<error-page>
  <error-code>404</error-code>
  <location>/servlet/package.ErrorHandlerServlet?code=404</location>
</error-page>

before <tablib>
...
</web-app>

Make sure you use "web-app_2_3.dtd" at the top. I'm afraid that if you
use
"web-app_2_2.dtd" it will not work.

Steve

"VEDRE, RANAPRATAP REDDY" wrote:

>  I have tried to use <error-page> directive in web.xml for 404 http
error
> and direct to a custom error page. But could not get it to work.
>
>  i know for tomcat 4 the error-page directive has to before the teg
lib
> descriptors. but still does not work.
>
>  Can anybody please give the syntax and placement in web.xml for
catching
> 404 error.
>
>  -Thanks.
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to