tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <wim.pr...@ecom.be>
Subject RE: Mapping
Date Tue, 30 Jan 2001 09:29:55 GMT
Just try

     <servlet-mapping>
         <servlet-name>
             IntraMail
         </servlet-name>
         <url-pattern>
             /IntraMail
         </url-pattern>
     </servlet-mapping>

normally http://localhost:8080/intramail/Intramail will work now because the
url pattern is relative to your webapp context, which is /intramail .

regards,
Wim.

> -----Original Message-----
> From: Markus Diesing [mailto:mdi@intra-sys.de]
> Sent: dinsdag 30 januari 2001 10:21
> To: tomcat-user@jakarta.apache.org
> Subject: Mapping
>
>
> Hello,
>
>   I've got the same problem as yesterday. My servlet's (a jar-file)
>   directory is /webapps/intramail/WEB-INF/lib/
>
>   Everything works fine when I call
>   http://localhost:8080/intramail/servlet/IntraMail, but
>   I'd like to call http://localhost:8080/intramail/IntraMail.
>   I tried mapping, but it doesn't work.
>
>   Here is my web.xml file:
>
> ...
> <web-app>
>     <servlet>
>         <servlet-name>
>             IntraMail
>         </servlet-name>
>         <servlet-class>
>             net.intrasys.servlet.intramail.IntraMail
>         </servlet-class>
>     </servlet>
>
>     <servlet-mapping>
>         <servlet-name>
>             IntraMail
>         </servlet-name>
>         <url-pattern>
>             /intramail/IntraMail
>         </url-pattern>
>     </servlet-mapping>
> </web-app>
>
> pleas help me, thanx
>
> --
> Best regards,
> Markus Diesing                         mailto:mdi@intra-sys.de
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
>


Mime
View raw message