tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Smith" <sat-g...@home.com>
Subject Re: How to access servlets without prefixes
Date Sat, 07 Oct 2000 17:32:16 GMT
Christian,

add the "home" parameter to the Context. This is
explained in the the server.xml comments near the
Context entries. This seems to be required whenever you
use a directory as docbase which is not in webapps.

Dave
----- Original Message ----- 
From: "Christian Parpart" <trapni@gmx.de>
To: "Apache Tomcat (User) MailingList" <tomcat-user@jakarta.apache.org>
Sent: Saturday, December 23, 2000 4:44 AM
Subject: How to access servlets without prefixes


> Hi all
> 
> how can I access a servlet wich is 
> mapped to any *.xml file without giving him
> any prefix like /mywebapp?
> 
>  <servlet>
>   <servlet-name>XmlFilter</servlet-name>
>   <servlet-class>myServlets.xmlFilter.XmlFilter</servlet-class>
>  </servlet>
>  <servlet-mapping>
>   <servlet-name>XmlFilter</servlet-name>
>   <url-pattern>*.xml</url-pattern>
>  </servlet-mapping>
> 
> This should be accessable from every sub directory on my host.
> 
>  <Host name="www.myhost.org">
>    <Context path=""
>             docBase="C:/path/to/htdocs"
>             debug="0" reloadable="true" trusted="true" >
>    </Context>
>  </Host>
> 
> This data is stored in $tomcat/conf/web.xml, because I thought
> these information are available for all hosts defined in server.xml.
> 
> But it doesn't work. Why and how should I define it?
> 
> Thanks in advance,
> 
> Christian Parpart
> SurakWare
> cparpart@surakware.com
> http://www.surakware.com


Mime
View raw message