Re: Filters: How to programmatically find out their order in hindsight?

2016-04-07 Thread Burkhard Graves
Ah, yes, of course. Sometimes the solution is so simple. Thanks, Martin! :-) B. Am 07.04.2016 um 10:57 schrieb Martin Holz (for Usenet): > Am 04/06/2016 um 10:15 PM schrieb Burkhard Graves: >> ServletContext#getFilterRegistrations() returns an unordered map only - >> how to programmatically find

Re: Filters: How to programmatically find out their order in hindsight?

2016-04-07 Thread Martin Holz (for Usenet)
Am 04/06/2016 um 10:15 PM schrieb Burkhard Graves: ServletContext#getFilterRegistrations() returns an unordered map only - how to programmatically find out the order in which the filters are applied/registered? I know the specs ... The order the container uses in building the chain of filters

Re: filters on j_security_check

2011-10-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 10/16/2011 1:55 PM, Chema wrote: >> >> >> >> Frankly, if you're using Spring Security, I'd stick with it. I >> myself am thinking of making the switch. >> >> > Yes, I tried it and like it , but I need Single Sign On support and > the so

Re: filters on j_security_check

2011-10-16 Thread Chema
> > > > Frankly, if you're using Spring Security, I'd stick with it. I myself > am thinking of making the switch. > > Yes, I tried it and like it , but I need Single Sign On support and the solutions what Spring Security offers are complicated to implement by me

Re: filters on j_security_check

2011-10-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chema, On 10/15/2011 4:18 PM, Chema wrote: > This is one of the reasons I switched to SecurityFilter: there is > a > >> FlexibleRealmInterface that passes-in the HttpServletRequest that >> was used to attempt authentication. That allows you to get ni

RE: filters on j_security_check

2011-10-15 Thread Caldarale, Charles R
> From: Chema [mailto:demablo...@gmail.com] > Subject: Re: filters on j_security_check > where I can find info about SecurityFilter ? The first hit on Google... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use on

Re: filters on j_security_check

2011-10-15 Thread Chema
This is one of the reasons I switched to SecurityFilter: there is a > FlexibleRealmInterface that passes-in the HttpServletRequest that was > used to attempt authentication. That allows you to get nice things > like the ip address of the request for logging. > > I'm interested on what are talking

Re: filters on j_security_check

2011-10-15 Thread Pid
On 13/10/2011 20:53, Caldarale, Charles R wrote: > If you want to do programmatic security in addition to declarative security, Or use the Servlet 3.0 APIs, supported by Tomcat. p signature.asc Description: OpenPGP digital signature

Re: filters on j_security_check

2011-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 10/13/2011 2:11 PM, Caldarale, Charles R wrote: >> From: Alejandro Soto [mailto:smalejan...@gmail.com] Subject: Re: >> filters on j_security_check > >> what i need is to know if the authentication was successful or >

RE: filters on j_security_check

2011-10-13 Thread Caldarale, Charles R
> From: Alejandro Soto [mailto:smalejan...@gmail.com] > Subject: Re: filters on j_security_check > call j_security_check from inside another servlet is > just an idea, why is bad idea? Because it's not supported by the spec; please read SRV.12. If you want to do program

Re: filters on j_security_check

2011-10-13 Thread Alejandro Soto
> > From: Alejandro Soto [mailto:smalejan...@gmail.com] > > Subject: Re: filters on j_security_check > > > what i need is to know if the authentication was successful or not > > What are you going to do with said information? > > > I just need to know that status and ha

RE: filters on j_security_check

2011-10-13 Thread Caldarale, Charles R
> From: Alejandro Soto [mailto:smalejan...@gmail.com] > Subject: Re: filters on j_security_check > what i need is to know if the authentication was successful or not What are you going to do with said information? > I just need to know that status and has to be before the au

Re: filters on j_security_check

2011-10-13 Thread Alejandro Soto
Hi, thanks for reply, well, what i need is to know if the authentication was successful or not, I want to get the status of that authentication, I just need to know that status and has to be before the authentication mechanism continues. I am trying to invoke j_security_check from inside another s

Re: filters on j_security_check

2011-10-13 Thread Pid
On 13/10/2011 15:09, Alejandro Soto wrote: > Hi, my name is Alejandro, I am working with Tomcat 7.0.20 and I need to know > how can I apply filters to j_security_check to verify the status of login > before continue with my authentication process. You can't use Filters because the Authentication V

Re: Filters and JSP

2011-04-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 4/14/2011 8:11 PM, Bill Davidson wrote: > public MyResponseWrapper( HttpServletResponse response ) throws > IOException { > super(response); > myOutputStream = new MyOutputStream(response); > Outpu

Re: Filters do not apply after redirect to the url that serving by Servlet

2007-10-03 Thread Mykola Paliyenko
David it is not about /mvc or /mvc/* it is about *.html filter does not apply on /mvc/news.html please read carefully the whole problem. On 10/3/07, David Delbecq <[EMAIL PROTECTED]> wrote: > > Better use /mvc/* as url pattern than /mvc if you want it to apply to > /mvc/news.html > Mykola Paliyenk

Re: Filters do not apply after redirect to the url that serving by Servlet

2007-10-03 Thread David Delbecq
Better use /mvc/* as url pattern than /mvc if you want it to apply to /mvc/news.html Mykola Paliyenko a écrit : Hi all, Do not know if this a problem with Tomcat or with Servlet 2.4 spec I have a FilterA that redirects from /news to the /mvc/news.html Then I have a DispatcherServelt that mapped

Re: Filters and getLastModified

2007-07-01 Thread Johnny Kewl
- Original Message - From: "Johnny Kewl" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Sunday, July 01, 2007 11:22 AM Subject: Re: Filters and getLastModified You know LightBulb, been seeing your questions for a while now, you clearly learning, bu

Re: Filters and getLastModified

2007-07-01 Thread Johnny Kewl
You know LightBulb, been seeing your questions for a while now, you clearly learning, but you have got one serious conceptual mind on you, not enough just to use TC, hey ;) I think its great, a guru in the making. To try answer your question, if its HTTP, the getLastModified() that you p

Re: Filters and getLastModified

2007-06-30 Thread Bill Barker
"lightbulb432" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Could somebody explain when in the request process getLastModified is > called > on a servlet? Is it before everything - all servlets, filters, listeners, > anything else? > Of course, to be called at all, you need t

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread Martin Gainty
s List" Sent: Friday, November 17, 2006 3:01 PM Subject: Re: Filters, Security, Tomcat and Configuration Thanks for your kind reply. I am having a bear of a time figuring out why I can't compile my filter. It is giving me the simple java error: com\x\view\filters\AccountFilter2.jav

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread Gregor Schneider
ooops - must have overlooked that one... maybe one hint: try to use a free ide with automatic method-completion, i.e. eclipse (http://www.eclipse.org), and you'll get around those problems in the future cheers greg -- what's puzzlin' you, is the nature of my game -

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread James Crosson
Thanks so much for your help. The reason for the error is beacuse the method is called getRequestURI. I figured it out shortly after posting. Sorry to post too much. James On 11/17/06, Gregor Schneider <[EMAIL PROTECTED]> wrote: Actually I doubt that you've got the file servlet-api.jar in you

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread Gregor Schneider
Actually I doubt that you've got the file servlet-api.jar in your classpath - it wouldn't come up with such an error-message than. You might want to use an antscript to compile your servlet, here's a snippet from mine:

Re: Filters, Security, Tomcat and Configuration

2006-11-17 Thread James Crosson
Thanks for your kind reply. I am having a bear of a time figuring out why I can't compile my filter. It is giving me the simple java error: com\x\view\filters\AccountFilter2.java:20: cannot find symbol symbol : method getURI() location: interface javax.servlet.http.HttpServletRequest

Re: Filters, Security, Tomcat and Configuration

2006-11-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Crosson wrote: > I believe that a strategy will be more trouble than it is > worth beacuse it seems you can't pass a regular expression, but so far I > have not been able to nail down a Filter. Filters are really the way to go, here, an

RE: Filters

2005-11-25 Thread Carl Olivier
AH. Damn, my aplogies - the mapping! Of course - *slaps forhead* :) Thanks a stack! Rgds, Carl -Original Message- From: Reynir Hubner [mailto:[EMAIL PROTECTED] Sent: 25 November 2005 14:23 To: Tomcat Users List Subject: Re: Filters -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi

Re: Filters

2005-11-25 Thread ALEX HYDE
Carl, I'm quite new to this but I'd guess that the Filter is instantiated at start-up by Tomcat. You might direct your new requests, plus the old requests for the asp pages, to Tomcat, using say Apache. Using a filter you could intercept *.asp and then forward/redirect to the new resource. --- Ca

Re: Filters

2005-11-25 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi, Sure, you can map your filter on to /* or something like that. That way you can intercept any URL you like and either rewrite, or redirect. It doesn't matter if your URL reads /something/something/default.asp or not, if you know how to handle that

Re: Filters and content size.

2005-11-10 Thread Mark Thomas
Will Hartung wrote: First a simple question. Do Tomcat, or servlet containers in general, set the Content-Size header for dynamic content? Tomcat sets it where it can. See http://issues.apache.org/bugzilla/show_bug.cgi?id=10541 for a good explanation. Mark ---