Sorry this may be a little off-topic but is there a way to get the mapping
for a filter. I'd like to determine what mapping set off the filter to use
it to rewrite a URL. I know I can get the same information from the servlet
request but then I'd have to parse it and that complicates things.
5.0.28 to test my
understanding. In one test I have the following
filter-mapping ...
dispatcherERROR/dispatcher
... /filter-mapping
and I try to stimulate it with the following JSP
%@ page errorPage=/filtex-dummy.do %
${10%0} %-- throw exception --%
The servlet runs and receives the request
I've created a toy filter and servlet to experiment with filters in
Tomcat 5.0.28. If I map the filter to the servlet like this
filter-mapping ...
dispatcherERROR/dispatcher
... /filter-mapping
and invoke the following JSP
%@ page errorPage=/filtex-dummy.do %
${10%0} %-- throw exception
be possible to set a pattern that
narrows the field more than simply a plain wildcard '/*' ... is this right?
As I said, it works fine on Widnows 2k ...
As a simple and reproducable example, I am using the supplied
'NtlmHttpAuthExample' servlet with jCifs0.8.0. Under Unix, if I set a filter
mapping
to set a pattern
that
narrows the field more than simply a plain wildcard '/*' ... is this
right?
As I said, it works fine on Widnows 2k ...
Yes, it's possible to set the filter-mapping url-pattern to something
more complex than /* ;) See the Servlet Specification SRV.11 for the
exact specification
[mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 1:53 PM
To: Tomcat Users List
Subject: RE: Filter mapping problem under Solaris 9
Howdy,
Now I am really confused. I also have the same problem under Linux (
White
Hat Enterprise - not sure of version number.. )
This is good, in that it's
Howdy,
Using the example RequestDumperFilter and a couple of files, the
pattern
matching _is_ ok after all ... so I am interested in the reported
problem
with POSTing. I'll have a dig around the archives and see if I can find
anything out.
Good, glad to hear that. The thread I had in mind was
Hello All,
Apologies if this has been brought up already, but I have a slightly odd
problem with filter-mapping in Tomcat 4.1.x ( I've tried under 4.1.24 and
4.1.29 ), which works fine under Windows 2K. I am using j2se 1.4.1_03 and
have tried j2se1.4.2_03 ( with 64 bit extension ) with j2ee 1.3.1
: Filter mapping problem under Solaris 9
Hello All,
Apologies if this has been brought up already, but I have a slightly
odd
problem with filter-mapping in Tomcat 4.1.x ( I've tried under 4.1.24
and
4.1.29 ), which works fine under Windows 2K. I am using j2se 1.4.1_03
and
have tried j2se1.4.2_03
Thanx craig.
I wonder why this is not a part of the spec, as it could be very usefull.
Is there a way of setting the url-patterns on runtime, or only in web.xml ?
Thanx again,
-reynir
There are only four standard URL patterns (and this applies
to servlet mappings and security
On Sun, 17 Nov 2002, Reynir Hübner wrote:
Date: Sun, 17 Nov 2002 10:53:20 -
From: Reynir Hübner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Servlet filter mapping
Thanx craig.
I wonder why this is not a part
Hi,
I have a filter that I want to be used for most paths in my webapplication.
The paths in the webapp are created on runtime, and there for I cannot put them in
web.xml, so I put url-pattern=/*
Something like :
filter-mapping
filter-nameControllFilter/filter-name
url-pattern/*/url
On Sat, 16 Nov 2002, Reynir Hübner wrote:
Date: Sat, 16 Nov 2002 12:12:46 -
From: Reynir Hübner [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Servlet filter mapping
Hi,
I have a filter that I want to be used for most
Is there a way to have a filter not run on a specific mapping?
For example, if you have a filter-mapping of /* this will be invoked
for every single resource in the container.
How can you prevent the filter from running against one particular
servlet (besides doing skip logic in the filter code
: Monday, October 28, 2002 2:02 PM
To: Tomcat Users List
Subject: filter-mapping,process /* except /x?
Is there a way to have a filter not run on a specific mapping?
For example, if you have a filter-mapping of /* this will be invoked
for every single resource in the container.
How can
On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote:
Date: Mon, 28 Oct 2002 14:02:29 -0500 (EST)
From: [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: filter-mapping,process /* except /x?
Is there a way to have a filter not run
/mycontext/myservlet'; return
true;
click here
/a
So in my web.xml, I have:
filter
filter-namemyFilter/filter-name
filter-classmyFilterClass/filter-class
/filter-name
filter-mapping
filter-namemyFilter/filter-name
servlet-namemyServlet/servlet-name
/filter-mapping
servlet
servlet
On Fri, 28 Dec 2001, Yoav Shapira wrote:
Date: Fri, 28 Dec 2001 15:37:23 -0500
From: Yoav Shapira [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Filter mapping question
Hi,
I have a servlet and a filter I want to be run
In tomcat 4.0, how do I map filter ( my filter ) to servlet
my simple servlet ?
filter-mapping
filter-namemy filter/filter-name
!-- this does not work --
servlet-namemy simple servlet/servlet-name
!-- this does not work neither --
servlet
+servlet
In either of these cases, you are using the invoker servlet that is
mapped to /servlet/*, which creates its own servlet definition instead
of using existing ones. For a filter mapping to work, the underlying
servlet *must* be mapped with a servlet-mapping.
filter-mapping
filter
20 matches
Mail list logo