tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: web.xml file problem
Date Tue, 01 Jun 2004 13:07:17 GMT
The dtd (http://java.sun.com/dtd/web-app_2_3.dtd) says that 
<welcome-file-list> must appear before <error-page>

-Tim

UmamaheswarKalluru@vjil.com wrote:

> 
> 
> 
> Hi,
> This is my web.xml file. I dont know whats wrong here but my first session
> gets expired. When I remove the error-page and welcome file list, then
> everything works fine. Am I wrong somewhere?
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/dtd/web-app_2_3.dtd">
> 
> <web-app>
> 
> <error-page>
>       <error-code>404</error-code>
>       <location>/CustomErrorPage.jsp</location>
> </error-page>
> 
> 
> <welcome-file-list>
>       <welcome-file>index.jsp</welcome-file>
> </welcome-file-list>
> 
> </web-app>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message