tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bodycombe, Andrew" <andrew.bodyco...@siemens.com>
Subject RE: configuring two servlets into my application
Date Tue, 07 Jan 2003 12:36:11 GMT
Try this:

<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet>
<servlet-name>HolasAlMundo</servlet-name>
<servlet-class>HolasAlMundo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HolasAlMundo</servlet-name>
<url-pattern>/HolasAlMundo</url-pattern>
</servlet-mapping>

Regards,

Andy


-----Original Message-----
From: Dionisio Ruiz de Zarate [mailto:dionisio@tinieblas.com]
Sent: 07 January 2003 12:31
To: tomcat-user@jakarta.apache.org
Subject: configuring two servlets into my application


i am tryin of configuring two test servlets in mytomcat application but when
i try to declare them into the web.xml appears error:
This file is not valid.
unexpected child element 'servlet'

the configuration is:
<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>HelloWorld</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>HelloWorld</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>HolasAlMundo</servlet-name>
<servlet-class>HolasAlMundo</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HolasAlMundo</servlet-name>
<url-pattern>HolasAlMundo</url-pattern>
</servlet-mapping>



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

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


Mime
View raw message