"Stewart Q. Baillie" wrote:
> Hi,
>
> I have a webapp context that happily maps all it's doc root *.rhtml
> extensions to one of it's servlets using the local web.xml file entries:
>
> <servlet>
> <servlet-name>RHTML</servlet-name>
>
> <servlet-class>norfolk.JavaWeb.RHTMLServlet</servlet-class>
> <init-param>
> <param-name>ORB</param-name>
> <param-value>NO</param-value>
> </init-param>
> </servlet>
> <servlet-mapping>
> <servlet-name>RHTML</servlet-name>
> <url-pattern>*.rhtml</url-pattern>
> </servlet-mapping>
>
> My question is, how can I get all the *.rhtml extensions on the server
> (including those in other webapp contexts) to also map to this servlet?
> It doesn't look like just entering the above into the system
> %TOMCAT_HOME%/conf/web.xml is the answer...
>
I'm assuming that you are talking about Tomcat 3.2 here. You will need to make
this mapping entry in each web.xml file -- as well as make the
norfolk.JavaWeb.RHTMLServlet class available to all of the webapps, either by
putting it on the system classpath or in WEB-INF/classes (or WEB-INF/lib) for
each app.
>
> Cheers,
> Stewart.
>
Craig McClanahan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]