tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: [TC4] Disabling JSP pages in one context only
Date Tue, 29 Jan 2002 15:20:44 GMT


On Tue, 29 Jan 2002, chris brown wrote:

> Date: Tue, 29 Jan 2002 10:10:41 +0100
> From: chris brown <dev@reflexe.fr>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: tomcat-user <tomcat-user@jakarta.apache.org>
> Subject: [TC4] Disabling JSP pages in one context only
>
> Hello,
>
> I'd like to disable the "jsp" servlet for one context only.  This servlet is
> declared in the "global" tomcat web.xml file.  I'd like to disable it in one
> specific context only.
>
> However, I don't want to remove it from the "global" web.xml file and then
> copy it to each individual webapp's web.xml (excluding the webapp in which
> JSPs should be disabled).  This is impratical, and furthermore reduces the
> webapp's portability (as the JSP servlet maps to an implementing class built
> in to Tomcat which is unlikely to be available in other deployment
> environments.
>

If you map the "*.jsp" URL pattern to something else in a
<servlet-mapping>, you've effectively disabled JSP for that webapp ...
your settings override the container defaults.

> Thanks for any suggestions,
> Christopher Brown
>

Craig


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message