Re: Re: Problems with filters in 5.5.9?

2005-05-22 Thread Brandon Dove
Lutz -- thanks for the help but unfortunately even after copying the jar to the $TOMCAT_HOME/common/lib/ directory I still am having problems. :( Anyone else have any ideas? Cheers, Brandon On Sat, 21 May 2005, Lutz Zetzsche ([EMAIL PROTECTED]) wrote: Hi Brandon, Am Freitag, 20. Mai

RE: Re: Problems with filters in 5.5.9?

2005-05-22 Thread Steve Kirk
Can you say more about how you upgraded? Specifically, were you very careful to migrate your config files across? -Original Message- From: Brandon Dove [mailto:[EMAIL PROTECTED] Sent: Monday 23 May 2005 02:14 To: Lutz Zetzsche Subject: Re: Re: Problems with filters in 5.5.9

Re: Problems with filters in 5.5.9?

2005-05-21 Thread Lutz Zetzsche
Hi Brandon, Am Freitag, 20. Mai 2005 23:01 schrieb Brandon Dove: I recently upgraded from 5.5.4 - 5.5.9. Now when starting my app I get the error: May 20, 2005 4:28:10 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter addressFilter

Problems with filters in 5.5.9?

2005-05-20 Thread Brandon Dove
I recently upgraded from 5.5.4 - 5.5.9. Now when starting my app I get the error: May 20, 2005 4:28:10 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter addressFilter java.lang.ClassNotFoundException: com.mycompany.servlet.AddressFilter [...] May 20, 2005

Realms and Filters question

2005-05-12 Thread Brett Parsons
Hi All, I've implemented a custom realm and a custom filter for my webapp. The idea is, I want the filter to handle incoming requests for ALL resources within the webapp while the realm is only going to handle several resources within the webapp. The problem is, I need the filter to be called

Re: Realms and Filters question

2005-05-12 Thread Tim Funk
The realm logic will be called before the filter logic. No way around it. -Tim Brett Parsons wrote: Hi All, I've implemented a custom realm and a custom filter for my webapp. The idea is, I want the filter to handle incoming requests for ALL resources within the webapp while the realm is only

Re: Realms and Filters question

2005-05-12 Thread Will Hartung
From: Tim Funk [EMAIL PROTECTED] Sent: Thursday, May 12, 2005 5:17 PM The realm logic will be called before the filter logic. No way around it. Yup, my major complaint with Servlet Authentication. You either use all of it or none of it. I'd like to think that they'd make it a little more

How to use servlet filters without modifying webapp

2005-04-28 Thread joelsherriff
Hello, I'm experimenting with applying a servlet filter to an existing webapp and I'm getting a ClassCastException upon startup. Can I do this without modifying the webapp source and adding my filter in there? If so, what else could be causing this? I'm not sure where it looks for the

Re: How to use servlet filters without modifying webapp

2005-04-28 Thread Anhony
Greetings, Try adding a filter block to your web.xml. Your JSP container locates your filters thru these sections in the web.xml. I included a small sample filter block below. filter filter-nameprocessingFilter/filter-name filter-classservletFilters.ProcessingFilter/filter-class /filter

Re: How to use servlet filters without modifying webapp

2005-04-28 Thread joelsherriff
: Thursday, April 28, 2005 9:48 AM Subject: Re: How to use servlet filters without modifying webapp Greetings, Try adding a filter block to your web.xml. Your JSP container locates your filters thru these sections in the web.xml. I included a small sample filter block below. filter filter

Re: How to use servlet filters without modifying webapp

2005-04-28 Thread joelsherriff
-04-28 10:16:59 StandardContext[/blojsom]: Starting filters 2005-04-28 10:16:59 StandardContext[/blojsom]: Starting filter 'timerFilter' 2005-04-28 10:16:59 StandardContext[/blojsom]: Exception starting filter timerFilter java.lang.ClassCastException

Re: How to use servlet filters without modifying webapp

2005-04-28 Thread Robert r. Sanders
filters without modifying webapp Greetings, Try adding a filter block to your web.xml. Your JSP container locates your filters thru these sections in the web.xml. I included a small sample filter block below. filter filter-nameprocessingFilter/filter-name filter

Re: How to use servlet filters without modifying webapp

2005-04-28 Thread joelsherriff
Thanks - that seemed to do the trick. - Original Message - From: Robert r. Sanders [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, April 28, 2005 10:26 AM Subject: Re: How to use servlet filters without modifying webapp Try the following

filters

2005-02-15 Thread Mike Jackson
I'm trying to wite a filter that will process a request after anything else in the chain has finished (ie post process). My goal is to process static content within the web app to update the context name within absolute paths (javascript or css files). I have implemented a response wrapper and

Re: Do Filters and the servlets part of the same thread?

2004-05-12 Thread Charles Shubert
On May 11, 2004, at 2:00 PM, Tim Funk wrote: Yes. (Kind of). In the life of a request - you are always one one thread. BUT -- Many threads many be using the doFilter() method at the same time. -Tim tom ly wrote: Are the servlets and the Filters that filters that particular servlet part

RE: Do Filters and the servlets part of the same thread?

2004-05-12 Thread Shapira, Yoav
Hi, What is the relationship between a request's thread and a user's session? No strict 1:1 relationship, that's for sure. A session may further be accessed by multiple threads at the same time (e.g. if the user has multiple browsers using the same webapp at the same time). I don't think

How can you limit the max life-time for a servlet using filters?

2004-05-11 Thread tom ly
Once in a while we're getting out of thread errors with Tomcat. We have a requirement timeout of 5 seconds. Is there a way to use Filters (or whichever any other method) so that we can limit the time that a thread/servlet stays alive. - Do you

Do Filters and the servlets part of the same thread?

2004-05-11 Thread tom ly
Are the servlets and the Filters that filters that particular servlet part of the same thread? - Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs

RE: Do Filters and the servlets part of the same thread?

2004-05-11 Thread Shapira, Yoav
Hi, A request (including its entire pipeline: valves, filters, servlets...) is processed by one thread in its entirety. Be careful relying on ThreadLocal-type designs. Yoav Shapira Millennium Research Informatics -Original Message- From: tom ly [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: Do Filters and the servlets part of the same thread?

2004-05-11 Thread Tim Funk
Yes. (Kind of). In the life of a request - you are always one one thread. BUT -- Many threads many be using the doFilter() method at the same time. -Tim tom ly wrote: Are the servlets and the Filters that filters that particular servlet part of the same thread

RE: tomcat 4 vs 5 form based container auth filters

2004-04-16 Thread Martin Alley
form based container auth filters Anyone? -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 16:42 To: 'Tomcat Users List' Subject: RE: tomcat 4 vs 5 form based container auth filters Thanks Adam It seems to me that the separation idea is not clear

Re: tomcat 4 vs 5 form based container auth filters

2004-04-16 Thread Adam Hardy
Martin, how does it cater for it? Are you saying you can use web.xml to map filters to the j_security_check URL? Adam On 04/16/2004 11:41 AM Martin Alley wrote: FYI this is catered for in tomcat 5 with the filter-mapping/dispatcher element (see servlet 2.4 spec). Thanks to Bill Barker

RE: tomcat 4 vs 5 form based container auth filters

2004-04-13 Thread Martin Alley
Anyone? -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 16:42 To: 'Tomcat Users List' Subject: RE: tomcat 4 vs 5 form based container auth filters Thanks Adam It seems to me that the separation idea is not clear cut. There is certainly a down side

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
Can anyone comment on this? Thanks Martin -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: 09 April 2004 09:53 To: Tomcat Users List Subject: tomcat 4 vs 5 form based container auth filters Hi, Initial observation indicates that filters get executed when a form

Re: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Adam Hardy
Yes your observations are correct. It's my understanding that filters are not invoked until after authentication. i.e. after the form-based login. I have no experience of site-mesh, but it seems a bit weird anyway to put decorations on a page via a filter - surely you should be encapsulating

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
: Re: tomcat 4 vs 5 form based container auth filters Yes your observations are correct. It's my understanding that filters are not invoked until after authentication. i.e. after the form-based login. I have no experience of site-mesh, but it seems a bit weird anyway to put decorations

Re: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Adam Hardy
Users List Subject: Re: tomcat 4 vs 5 form based container auth filters Yes your observations are correct. It's my understanding that filters are not invoked until after authentication. i.e. after the form-based login. I have no experience of site-mesh, but it seems a bit weird anyway to put

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
to change the look and feel. I'll see if I can find anything in the tc5 release notes on this. Thanks again Martin -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 12 April 2004 13:13 To: Tomcat Users List Subject: Re: tomcat 4 vs 5 form based container auth filters

Re: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Adam Hardy
I can see Yoav is blitzing the mailing list right now. Perhaps you'll get a more authoritative answer from him or the other hardcore tomcat people. One of the problems of excluding filters from the authentication request is to do with character-encoding in the request - I remember someone

RE: tomcat 4 vs 5 form based container auth filters

2004-04-12 Thread Martin Alley
form based container auth filters I can see Yoav is blitzing the mailing list right now. Perhaps you'll get a more authoritative answer from him or the other hardcore tomcat people. One of the problems of excluding filters from the authentication request is to do with character-encoding

tomcat 4 vs 5 form based container auth filters

2004-04-09 Thread Martin Alley
Hi, Initial observation indicates that filters get executed when a form for form based container auth is served - under tomcat 4, but not under tomcat 5. I'm using sitemesh. The decorations go on the form based login page under tomcat 4, but not under tomcat 5. I need to do more research

Filters and load-on-startup

2004-03-16 Thread Blanchard, Raphael
Do filters get loaded before servlets regardless of load-on-startup value? Raphael

RE: Filters and load-on-startup

2004-03-16 Thread Shapira, Yoav
Hi, Do filters get loaded before servlets regardless of load-on-startup value? I don't think so: as filters can be mapped to servlet-name, servlets must be loaded first. (Although I suppose you could read web.xml, so you have the servlet info, then instantiance filters, then instantiate

RE: Filters and load-on-startup

2004-03-16 Thread Ronald Wildenberg
Hi, Do filters get loaded before servlets regardless of load-on-startup value? I don't think so: as filters can be mapped to servlet-name, servlets must be loaded first. (Although I suppose you could read web.xml, so you have the servlet info, then instantiance filters, then instantiate

RE: Filters and load-on-startup

2004-03-16 Thread Shapira, Yoav
Hi, Actually, it is. SRV9.12 mandates the following load order: listeners, filters, servlets (Servlet Specification 2.4). So any filters should be loaded before any servlets, regardless of load-on-startup value. Yup, clear as day, thanks. I figured you'd have looked at the spec before posting

RE: Filters and load-on-startup

2004-03-16 Thread Blanchard, Raphael
? Raphaël -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 16, 2004 10:49 AM To: Tomcat Users List Subject: RE: Filters and load-on-startup Hi, Actually, it is. SRV9.12 mandates the following load order: listeners, filters, servlets (Servlet

RE: Filters and load-on-startup

2004-03-16 Thread Shapira, Yoav
the filter? Double oops for me ;) Yes there's another, better solution: use a ServletContextListener to initialize your connection pool. As specified in the SRV location from Senor Wildenberg, this will get called before any filters and servlets. Yoav Shapira This e-mail, including any attachments

Re: Filters and load-on-startup

2004-03-16 Thread Christopher Schultz
Raphael, The webapp has a login filter that needs a connection from the connection pool. The webapp loads the login filter first. I don't really want to remove the filter because its integral to the application's design. Is there another solution, to getting the connection pool instantiated

Order of Filters Listeners

2004-02-06 Thread Wendy Smoak
It looks like SessionListener happens before Filters. I have a couple of Filters, after which there is a userid in session scope. I was hoping, in a SessionListener, to pick up that userid and use it to read something from the database, but no dice since things happen in the opposite order. I

RE: Order of Filters Listeners

2004-02-06 Thread Wendy Smoak
From: Wendy Smoak I have a couple of Filters, after which there is a userid in session scope. I was hoping, in a SessionListener, to pick up that userid and use it to read something from the database, but no dice since things happen in the opposite order. Ah, never mind. (Not that anyone

Jk2 and IIS Filters: Can I setup chain of filter between JSP and other engines

2004-02-02 Thread Evan Borysko
For IIS 5.1 / WinXP and IIS 6 / Win2k3 I've been reading MS descriptions about ISAPI filter actions, and from thier description, filters execute inorder from highest presented to lowest and in the order they appear in the configuration. Is my understanding correct? What I'm atempting to do

cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Patrick Scheuerer
Hi, I cannot get Filters to work with Tomcat 5.0.16. Here are my filter definitions in web.xml: filter filter-nameUserFilter/filter-name filter-classch.ctc.support.common.UserFilter/filter-class /filter filter filter-nameAdminFilter/filter-name filter

RE: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Shapira, Yoav
To: Tomcat Users List Subject: cannot get Filters to work with Tomcat 5.0.16 Hi, I cannot get Filters to work with Tomcat 5.0.16. Here are my filter definitions in web.xml: filter filter-nameUserFilter/filter-name filter-classch.ctc.support.common.UserFilter/filter-class /filter

Re: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Patrick Scheuerer
Shapira, Yoav wrote: Howdy, Your first filter-mapping is mapping to a servlet-name /*?? Either put a defined servlet name there or map to url-pattern /*. I'll try copy/paste this time. Here's the filter declaration: filter filter-nameUserFilter/filter-name

RE: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Shapira, Yoav
Howdy, Looks good. Did you try either one of the filters individually to see if it works by itself? Do you have any other errors in your logs? Anything else in web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Patrick Scheuerer [mailto:[EMAIL PROTECTED] Sent

Re: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Patrick Scheuerer
Shapira, Yoav wrote: Howdy, Looks good. Did you try either one of the filters individually to see if it works by itself? Do you have any other errors in your logs? Anything else in web.xml? I tried both filters individually. Same thing. If i delete the filter stuff, everything works like

RE: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Shapira, Yoav
:[EMAIL PROTECTED] Sent: Tuesday, January 06, 2004 11:32 AM To: Tomcat Users List Subject: Re: cannot get Filters to work with Tomcat 5.0.16 Shapira, Yoav wrote: Howdy, Looks good. Did you try either one of the filters individually to see if it works by itself? Do you have any other errors in your

RE: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Ralph Einfeldt
There is an unneeded servlet-name/. As I understand the error message you have to use either url-pattern or servlet-name. (Not shure if this is the problem, as I havn't used filters by now) -Original Message- From: Patrick Scheuerer [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 06

Re: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Patrick Scheuerer
Shapira, Yoav wrote: Howdy, OK, now that's the 3rd different version of the filter elements in your web.xml ;) You shouldn't have both servlet-name and url-pattern children of filter-mapping, only one of them. I tried to add the filters with the Struts Studio Web Deployment Editor just

Re: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Jeanfrancois Arcand
-name and url-pattern children of filter-mapping, only one of them. I tried to add the filters with the Struts Studio Web Deployment Editor just as another test. It's quite interesting: Struts Studio tells me that servlet-name is required. But in the DTD it says servlet-url OR servlet-name. So i

RE: cannot get Filters to work with Tomcat 5.0.16

2004-01-06 Thread Giuliano Gavazzi
At 11:36 am -0500 2004/01/06, Shapira, Yoav wrote: Howdy, OK, now that's the 3rd different version of the filter elements in your web.xml ;) You shouldn't have both servlet-name and url-pattern children of filter-mapping, only one of them. that's much better said then the original error message:

CUSTOM URL FILTERS TOMCAT

2003-11-12 Thread murugan arunachalam
hi , How would i set up custom filter at the server level instaed of the web app . i want to route all the incoming requests to tomcat thru my custom URL filter . Regards, Murugan __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

Re: CUSTOM URL FILTERS TOMCAT

2003-11-12 Thread Christopher Schultz
How would i set up custom filter at the server level instaed of the web app . i want to route all the incoming requests to tomcat thru my custom URL filter . I think what you want is a Valve. Check the documentation for org.apache.catalina.Valve. Unfortunately, this technique will not work

Re: Defining filters in sub-directories

2003-10-23 Thread Tim Funk
You can match a prefix, or a file extension but not both. So you can do this: filter-mapping filter-nameAdminSection/filter-name url-pattern/admin/*/url-pattern /filter-mapping The Servlet spec has some examples of how URL matching will work. -Tim Ryan Parr wrote: As so many have said

Re: Defining filters in sub-directories

2003-10-23 Thread Ryan Parr
On Thu, 2003-10-23 at 04:42, Tim Funk wrote: You can match a prefix, or a file extension but not both. So you can do this: filter-mapping filter-nameAdminSection/filter-name url-pattern/admin/*/url-pattern /filter-mapping The Servlet spec has some examples of how URL matching will

Defining filters in sub-directories

2003-10-22 Thread Ryan Parr
As so many have said before, I'm new to Java and Tomcat. So please forgive any poor design you see in my code, but please let me know about it :) I've created a filter class that handles user authorization. Basically when a user hits a page the filter is defined for, it checks for a boolean value

Why Tomcat doesn't reload my filters

2003-10-13 Thread Marcin
Hi, I wrote a web application with filters. When Tomcat starts it works fine. When I try to reload it using manager I get exceptions in log files. This is a part of my web.xml file concerning filters: filter filter-namefiles/filter-name filter-classscs.util.SCSMultipartFilter/filter

Re: Why Tomcat doesn't reload my filters

2003-10-13 Thread Justin Ruthenbeck
What version of Tomcat are you using? At 01:51 PM 10/13/2003, you wrote: Hi, I wrote a web application with filters. When Tomcat starts it works fine. When I try to reload it using manager I get exceptions in log files. This is a part of my web.xml file concerning filters: filter filter

Re: Why Tomcat doesn't reload my filters

2003-10-13 Thread Marcin
Hi, What version of Tomcat are you using? Apache Tomcat/4.1.27 Best regards Marcin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why Tomcat doesn't reload my filters

2003-10-13 Thread Justin Ruthenbeck
Most likely... There's a Bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096 Fixed with a hotfix you'll need to download: http://www.apache.org/dist/jakarta/tomcat-4/binaries/4.1.27-hotfix-22096.zip Hope that works for ya... justin At 02:04 PM 10/13/2003, you wrote: Hi, What version of

Re: Why Tomcat doesn't reload my filters

2003-10-13 Thread Marcin
Hi, There's a Bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096 Fixed with a hotfix you'll need to download: http://www.apache.org/dist/jakarta/tomcat-4/binaries/4.1.27-hotfix-22096.zip Hope that works for ya... Jep, thanks for help. Best regards Marcin

RE: Help :- Filters .

2003-10-08 Thread Shapira, Yoav
Subject: Re: Help :- Filters . Thanks a lot Jacob. I'll take a look at the docs right away. --Steve --- Jacob Kjome [EMAIL PROTECTED] wrote: You might want to look into Tomcat-specific Valve's. Valve's are essentially filters, but act at the level of Tomcat instead of at the level of each

Re: Help :- Filters .

2003-10-05 Thread Steven Perry
Thanks a lot Jacob. I'll take a look at the docs right away. --Steve --- Jacob Kjome [EMAIL PROTECTED] wrote: You might want to look into Tomcat-specific Valve's. Valve's are essentially filters, but act at the level of Tomcat instead of at the level of each webapp and can be more

Re: Help :- Filters .

2003-10-04 Thread Jacob Kjome
You might want to look into Tomcat-specific Valve's. Valve's are essentially filters, but act at the level of Tomcat instead of at the level of each webapp and can be more powerful than filters. The Tomcat docs describe existing valves. I'd just take a look at one of those valves to get

Help :- Filters .

2003-10-03 Thread Steven Perry
I have configured a filter to do some preService processing (i,e, before the request is passed onto the webapp). I, initially, configured it for a single webapp (modified the relevant web.xml) and it worked fine. Now, I want to configure it such that ALL webapps use this filter. I tried to

Difference between path-mapped and servlet-mapped filters

2003-09-26 Thread Julien Martin
Hello, Can anyone please explain to me what the difference is between path-mapped and servlet-mapped filters. Thanks in advance, Julien. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Difference between path-mapped and servlet-mapped filters

2003-09-26 Thread Tim Funk
A filter can be mapped against a URL. (path mapped) or A filter can be mapped against a servlet declaration(servlet mapped) -Tim Julien Martin wrote: Hello, Can anyone please explain to me what the difference is between path-mapped and servlet-mapped filters. Thanks in advance, Julien

A question about filters

2003-07-08 Thread Abid Ali Teepo
Hi After a lot of experimenting and hassle i've come to the conclusion that i have misundeerstood how filters work. I thought i could make a filter for the entire website, and all requests to that website would go through a specified filter. This is not possible, as far as i know?? You can

RE: A question about filters

2003-07-08 Thread Andy Eastham
Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users List Subject: A question about filters Hi After

RE: A question about filters

2003-07-08 Thread Abid Ali Teepo
To: Tomcat Users List Subject: RE: A question about filters Abid, You are right, but if you set up the same filter in the web.xml for every webapp, you'll get the same effect. Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 10:30 To: Tomcat Users

RE: A question about filters

2003-07-08 Thread Andy Eastham
not give it a try and let us know what happens. All the best, Andy -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 11:10 To: Tomcat Users List Subject: RE: A question about filters Yes, i suppose that will work, but there is also a web.xml file

RE: A question about filters

2003-07-08 Thread Abid Ali Teepo
Yes, i think i will try that when you say filter map such as * you mean url-pattern as * right ? Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters Abid, The server

RE: A question about filters

2003-07-08 Thread Abid Ali Teepo
Hi again Yep :-) it works for the whole application if you put the definition in the application web.xml. Thank you for your help. Abid -Original Message- From: Andy Eastham [mailto:[EMAIL PROTECTED] Sent: 8. juli 2003 13:05 To: Tomcat Users List Subject: RE: A question about filters

RE: A question about filters

2003-07-08 Thread Andy Eastham
Abid, Yes. Andy PS There is an excellent resource on web.xml as a sample chapter at www.moreservlets.com -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 12:11 To: Tomcat Users List Subject: RE: A question about filters Yes, i think i

RE: url-pattern in filters

2003-07-02 Thread Abid Ali Teepo
in filters did you see my reply to your previous post? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:30 PM To: Tomcat Users List Subject: RE: url-pattern in filters Howdy, A filter mapped to /* will get called for all requests

RE: url-pattern in filters

2003-07-02 Thread Cox, Charlie
that is the correct mapping. look at the examples web.xml and it is used in there. The source for the sample filters is also included inthe examples context. do you have any errors in the logs? -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02

url-pattern in filters

2003-07-01 Thread Abid Ali Teepo
Hi Can someone direct me to information as to how i can use the url-pattern in the web.xml file for a filter. I want the filter to be used for all requests, and have put in a url-pattern /* /url-pattern. Somehow the filter is still not called for any request. Anyone got a clue ? Regards

RE: url-pattern in filters

2003-07-01 Thread Shapira, Yoav
- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:26 PM To: [EMAIL PROTECTED] Subject: url-pattern in filters Hi Can someone direct me to information as to how i can use the url-pattern in the web.xml file for a filter. I want the filter to be used for all requests

Proper Idiom For Filters Common To Several Projects?

2003-06-25 Thread Michael Duffy
Can someone offer a suggestion on how best to deploy filter code that's common to several WARs? Should they be packaged into a JAR and put in TOMCAT_HOME/server/lib? I've got a compression filter that I'm using in one WAR, but I'd really like to put it someplace where all my applications can

RE: Proper Idiom For Filters Common To Several Projects?

2003-06-25 Thread Shapira, Yoav
Duffy [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 10:25 AM To: [EMAIL PROTECTED] Subject: Proper Idiom For Filters Common To Several Projects? Can someone offer a suggestion on how best to deploy filter code that's common to several WARs? Should they be packaged into a JAR and put

Proper Idiom For Filters Common To Several Projects?

2003-06-25 Thread Michael Duffy
Can someone offer a suggestion on how best to deploy filter code that's common to several WARs? Should they be packaged into a JAR and put in TOMCAT_HOME/server/lib? I've got a compression filter that I'm using in one WAR, but I'd really like to put it someplace where all my applications can get

Filters and Forwarding

2003-06-18 Thread Chisholm, Paul
wont work because the filter would then process the request before X, instead of between X and Y. I can incorporate the functionality of the filter in Y but that defeats the whole purpose of using filters (there are situations where I want to use Y without the filter). Is there is way to do what I

Re: Filters and Forwarding

2003-06-18 Thread Tim Funk
Filters apply only to the incoming request. Filters are not invoked on subsequent forward() or include(). But the 2.4 spec will allow filters to be run on forward() (and I think include, read the spec to verify) -Tim Chisholm, Paul wrote: Hi, I have a servlet X that forwards to a servlet Y

Re: Filters and Forwarding

2003-06-18 Thread Antonio Fiol Bonnín
, instead of between X and Y. I can incorporate the functionality of the filter in Y but that defeats the whole purpose of using filters (there are situations where I want to use Y without the filter). Is there is way to do what I want? Thanks, Paul

Filters and 4.1.24

2003-06-17 Thread Mike Curwen
, restarted the OS (WinXP).. couldn't get it to work! Then I read the following from the book: At this point, some readers may question the necessity to test all 3 types of resources (static HTML, JSP and Servlet). However, if you're creating filters that must work across many types of resources

RE: using filters

2003-06-04 Thread Shapira, Yoav
testing scripts. There are many tools out there, some free, to help you with this. Yoav Shapira Millennium ChemInformatics -Original Message- From: siddharth [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:18 AM To: [EMAIL PROTECTED] Subject: using filters Hi all, If i have

using filters

2003-06-03 Thread siddharth
Hi all, If i have implemented a filter who checks specific value in the session object ( some string manipulation is involved). Thus each request goes through filter. Will this hamper the performance ?? is it advisable to use filters for such cases ? thanx in advance. -- siddharth [EMAIL

RE: inconsistencies in Tomcat handling servlet filters...

2003-04-01 Thread Jacob Kjome
this is happening? Jake From: Leech, Jonathan [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: inconsistencies in Tomcat handling servlet filters... Date: Mon, 31 Mar 2003 11:19:57 -0700 Jake, I think I can help you out Do me a favor though and post/forward

Re: inconsistencies in Tomcat handling servlet filters...

2003-03-14 Thread Jacob Kjome
about. I have attached all the code in question, but this is the meat of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3.html ). public class PrePostFilter extends GenericFilter { public void doFilter(final ServletRequest request, final

Re: inconsistencies in Tomcat handling servlet filters...

2003-03-14 Thread Kris Schneider
of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3.html ). public class PrePostFilter extends GenericFilter { public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain

RE: inconsistencies in Tomcat handling servlet filters...

2003-03-14 Thread Shapira, Yoav
servlet filters... No one has any opinions or comments on this? I can't believe no one else has run into this problem. Jake At 04:46 PM 3/13/2003 -0600, you wrote: I've mentioned this issue before regarding a GZIPFilter that wasn't working under Tomcat except for static file content (not working

RE: inconsistencies in Tomcat handling servlet filters...

2003-03-14 Thread Jacob Kjome
response wrappers, and we can start there in looking for bugs? Yoav Shapira Millennium ChemInformatics -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Friday, March 14, 2003 9:27 AM To: Tomcat Users List Subject: Re: inconsistencies in Tomcat handling servlet filters

inconsistencies in Tomcat handling servlet filters...

2003-03-13 Thread Jacob Kjome
in question. Note that I have some comments in the code that explain what works, what doesn't so read that to get an idea of what I am talking about. I have attached all the code in question, but this is the meat of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3

Re: inconsistencies in Tomcat handling servlet filters...

2003-03-13 Thread Jacob Kjome
of it (based on the tutorial at http://www.orionserver.com/tutorials/filters/3.html ). public class PrePostFilter extends GenericFilter { public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain) throws IOException, ServletException { PrintWriter out

using multiple filters

2003-01-22 Thread Erik Price
FilterChain as the the SecurityFilter? Or can there be two separate, disparate filters for a given resource? Thanks for any insight, it's kind of a confusing topic to me. Erik -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: using multiple filters

2003-01-22 Thread Craig R. McClanahan
On Wed, 22 Jan 2003, Erik Price wrote: Date: Wed, 22 Jan 2003 14:38:05 -0500 From: Erik Price [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: using multiple filters I would like to use a filter on every servlet and JSP

Re: using multiple filters

2003-01-22 Thread Erik Price
? Or can there be two separate, disparate filters for a given resource? You can have any number of filters mapped to the same resources -- the container assembles the filter chain for you, so you don't need to worry about that. I thought that the FilterChain is the last argument to my

Re: using multiple filters

2003-01-22 Thread Craig R. McClanahan
On Wed, 22 Jan 2003, Erik Price wrote: Date: Wed, 22 Jan 2003 15:37:21 -0500 From: Erik Price [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: using multiple filters Craig R. McClanahan wrote: Is testing the URL

Re: Filters - get content-type of a response?

2003-01-18 Thread David Orriss Jr
On Fri, Jan 17, 2003 at 06:38:30PM -0800, Craig R. McClanahan wrote: There is indeed a way to do this ... the following example hasn't been tested, but should give you a starting point. Craig, Exactly what I needed. Thanks for the insights... Have a good weekend.. -- David Orriss Jr.

Re: Filters - get content-type of a response?

2003-01-18 Thread Joe Tomcat
On Fri, 2003-01-17 at 18:38, Craig R. McClanahan wrote: The key problem is that there's no method like getContentType() on the HttpServletResponse interface, right (at least not until you get to Servlet 2.4, where it was added)? OK, no problem ... let's add one. We can't change the servlet

  1   2   3   >