You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thiru Panyala <th...@hds.com> on 2002/11/07 02:08:44 UTC
Can a filter handle all the apps in a container?
Hi,
I have a simple (stupid?) question.
Can I configure a Servlet filter to intercept requests to all the
applications (a.k.a all the ServletContexts)? All I know is we can configure
a filter for each ServletContext (application), but I am wondering if there
is any way.
The reason I am asking is because, if there is a way to do so, I can
configure my filter to provide me the debug output (Such as CGI, session,
request, and ServletContext variables) on all the applications on
development servers and I can get rid of debugging on production servers (by
not deploying the filter).
Thanx in advance,
Thirupati Panyala
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Can a filter handle all the apps in a container?
Posted by Eddie Bush <ek...@swbell.net>.
Thiru Panyala wrote:
>Hi,
>
>I have a simple (stupid?) question.
>Can I configure a Servlet filter to intercept requests to all the
>applications (a.k.a all the ServletContexts)? All I know is we can configure
>a filter for each ServletContext (application), but I am wondering if there
>is any way.
>
You setup filters in web.xml - you could configure the filter for every
app; you'd do it one app at a time. Would it be the same instance? Now
there's a good question ... Craig?
>The reason I am asking is because, if there is a way to do so, I can
>configure my filter to provide me the debug output (Such as CGI, session,
>request, and ServletContext variables) on all the applications on
>development servers and I can get rid of debugging on production servers (by
>not deploying the filter).
>
I think I'm not understanding. See commons-logging for controlling
logging output. commons-logging + (jdk1.4 logging | log4j) =
easily-managed debug output.
>Thanx in advance,
>Thirupati Panyala
>
--
Eddie Bush
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>