tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shawn <javajun...@koyuru.com>
Subject Re: Help: invalid web.xml
Date Fri, 31 Jan 2003 06:01:39 GMT
Doesn't your <taglib> come after the <welcome-file-list>

I think it should.  I'm not sure about the <error-page> though.

Anyway, the order is relevant.



On Fri, 2003-01-31 at 12:59, Rob Cartier wrote:
> I am having a tough time trying to create a valid web.xml
> using taglib
> 
> Is there a document that I can follow that will show me
> to hiearchy of a properly formatted document
> I am supplying my current web.xml for anyones review
> and correction. XMLWriter says the taglib declaration
> I am usng is invalid. I am confused . It looks ok
> 
> thanks in advance
> 
> Rob
> 
> <?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>
>   <display-name>
>   	Farmington Sports Arena
>   </display-name>
>   <description>
>   	Farmington Sports Arena
>   </description>
>   
>    <context-param>
>   	<param-name>base_href</param-name>
>   	<param-value>http://www.fsasports.com/fsa/</param-value>
>   </context-param>
>   
> 
>   <servlet>
> 	<servlet-name>SendMailServlet</servlet-name>
> 	<display-name>SendMailServlet</display-name>
> 	<servlet-class>SendMailServlet</servlet-class>
> 	<init-param>
> 		<param-name>base_href</param-name>
> 		<param-value>http://www.fsasports.com/fsa/</param-value>
> 	</init-param>
> 	<init-param>
> 		<param-name>mailhost</param-name>
> 		<param-value>apollo.homeip.net</param-value>
> 	</init-param>
> 	<init-param>
> 		<param-name>mailfrom</param-name>
> 		<param-value>webuser@fsasports.com</param-value>
> 	</init-param>
> 	<init-param>
> 		<param-name>envelope_from</param-name>
> 		<param-value>rcartier@apollo.homeip.net</param-value>
> 	</init-param>
>   </servlet>
>  
>   <servlet>
> 	<servlet-name>MailPremierApplication</servlet-name>
> 	<display-name>MailPremierApplication</display-name>
> 	<servlet-class>MailPremierApplication</servlet-class>
> 	<init-param>
> 		<param-name>mailhost</param-name>
> 		<param-value>apollo.homeip.net</param-value>
> 	</init-param>
>   </servlet>
>   
>   <servlet-mapping>
>         <servlet-name>invoker</servlet-name>
>         <url-pattern>/servlet/*</url-pattern>
>   </servlet-mapping>
>  
>   <taglib>
> 	<taglib-uri>http://jakarta.apache.org/taglibs/dbtags</taglib-uri>
> 	<taglib-location>/WEB-INF/dbtags.tld</taglib-location>
>   </taglib>
>  
> 
>   <welcome-file-list>
> 	<welcome-file>index.html</welcome-file>
> 	<welcome-file>index.htm</welcome-file>
> 	<welcome-file>index.jsp</welcome-file>
> 	<welcome-file>default.html</welcome-file>
> 	<welcome-file>default.htm</welcome-file>
> 	<welcome-file>default.jsp</welcome-file>
>   </welcome-file-list>
>   
> 
>   <error-page>
> 	<error-code>404</error-code>
> 	<location>/error404.jsp</location>
>   </error-page>
>   
> </web-app>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
-- 
shawn <javajunkie@koyuru.com>


---------------------------------------------------------------------
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