Realm and Filter question

2005-05-12 Thread Brett Parsons
Hi All, I've implemented a custom realm and a custom servlet 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

AW: filter question

2005-02-24 Thread Michael Südkamp
If you need an example how to modify the response, see http://java.sun.com/developer/EJTechTips/2002/tt0919.html#1. If you need a good lib that let you modify your HTML, e.g. inserting a hidden field into a form, see http://freshmeat.net/projects/jerichohtml/. Michael

filter question

2005-02-23 Thread Scott Purcell
Hello, I am having trouble with a filter. Code below. What I am trying to achieve is as follows: We have a current web-site, with a lot of jsp pages, etc. We are moving the code to a load-balanced environment, and I would like to put a hidden IP address into each display page. This way I can

Re: filter question

2005-02-23 Thread Peter Davison
Hi Scott. Your filter should probably set an attribute in the request or perhaps the session, that your jsp could display, rather than writing to the response's writer object. By opening up the writer and writing to it you are effectively setting the response to the request to be the contents of

Re: filter question

2005-02-23 Thread Andre Van Klaveren
Peter, I don't think Scott wants to modify every JSP in his application. Sounds like he has a lot! Scott, the reason your filter isn't working is because the response from your servlets is getting sent to the client before your filter has a chance to add it's text to it (using the PrintWriter).

RE: Filter question in 4.1.18, can my filter get unchunked and un zipped requests?

2004-10-22 Thread Donie Kelly
: Filter question in 4.1.18, can my filter get unchunked and unzipped requests? Donie Kelly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I've been reading up on filters to see if I can find a solution to an annoying problem. I can't find it so I'm looking here. I have

Filter question in 4.1.18, can my filter get unchunked and unzipp ed requests?

2004-10-21 Thread Donie Kelly
Hi all I've been reading up on filters to see if I can find a solution to an annoying problem. I can't find it so I'm looking here. I have this http filter that messes with the http request and response before it enters and leaves tomcat. The problem is that this filter works at a fairly

Re: Filter question in 4.1.18, can my filter get unchunked and unzipped requests?

2004-10-21 Thread Bill Barker
Donie Kelly [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I've been reading up on filters to see if I can find a solution to an annoying problem. I can't find it so I'm looking here. I have this http filter that messes with the http request and response before it

[OT] HTTP and tomcat filter question

2004-02-16 Thread Duane Burchell
This question is a bit OT, since it deals more with HTTP than tomcat (I think), but maybe somebody can help. I'm (still) working with setting up filters in Tomcat, and am seeing some erratic behavior, which leads me to ask this question : Assuming I have a URL of

Re: [OT] HTTP and tomcat filter question

2004-02-16 Thread Justin Ruthenbeck
Duane, This is a pretty crazy set of requirements you're working with here -- I'll trust there's a good reason for it and just stick to the question. ;) At 11:34 AM 2/16/2004, you wrote: Assuming I have a URL of http://www.mysite.com/myservlet.jsp?myvar=1yourvar=2 Your URL is:

A simple filter question ..

2003-07-01 Thread Abid Ali Teepo
Hi I am trying to make a filter that will redirect all request that don't have a autheticated attribute set, to be redirected to the login page. Somehow my filter does not work properly even though it still is a very basic implementation that does nothing besides a few system out

RE: A simple filter question ..

2003-07-01 Thread Cox, Charlie
configured. */ Charlie -Original Message- From: Abid Ali Teepo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 3:18 AM To: [EMAIL PROTECTED] Subject: A simple filter question .. Hi I am trying to make a filter that will redirect all request that don't have

RE: ISAPI filter question

2001-04-06 Thread Borislav Iordanov
Thanks a lot for your help! Borislav -Original Message- From: Ricardo Gladwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 05, 2001 5:25 AM To: [EMAIL PROTECTED] Subject: RE: ISAPI filter question The ISAPI filter is not responsible for starting Tomcat: it merely handles

RE: ISAPI filter question

2001-04-05 Thread Ricardo Gladwell
: Borislav Iordanov [mailto:[EMAIL PROTECTED]] Sent: 05 April 2001 02:49 To: Tomcat User List Subject: ISAPI filter question Hi, I've used tomcat for a while, starting it from the command line. Now, I've configured the ISAPI filter for IIS 5.0 under Windoz 2000 Professional and it works

ISAPI filter question

2001-04-04 Thread Borislav Iordanov
Hi, I've used tomcat for a while, starting it from the command line. Now, I've configured the ISAPI filter for IIS 5.0 under Windoz 2000 Professional and it works fine also. Except, I'm wondering why do I have to start tomcat from the shell as usual? Why doesn't the ISAPI filter start it? What