geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iñigo <...@nodo50.org>
Subject Re: servlet mapping in web.xml
Date Sat, 13 Aug 2005 17:46:21 GMT
I would have sworn I had tried to deploy it in this order and it had not 
worked. Well, nevertheless, it has worked now.

Thank you very much!

Jeremy Boynes escribió:

> The servlet-mapping element should follow the servlet one e.g.
>
> <web-app
>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"
>    xmlns="http://java.sun.com/xml/ns/j2ee"
>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
>      <servlet>
>        <servlet-name>HolaMundo</servlet-name>
>        <servlet-class>classes.HolaMundo</servlet-class>
>        <init-param>
>          <param-name>parametro1</param-name>
>          <param-value>300</param-value>
>        </init-param>
>      </servlet>
>
>      <servlet-mapping>
>        <servlet-name>HolaMundo</servlet-name>
>        <url-pattern>/servlet/HolaMundo</url-pattern>
>      </servlet-mapping>
>    </web-app>



Mime
View raw message