Re: filter: How to set browser encoding?

2005-10-12 Thread Frank W. Zammetti
Mark, have a look here: http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/CharacterEncodingFilter.html Just added that to JWP last weekend :) It essentially calls request.setCharacterEncoding() with whatever you configure. (Oops... ignore the description of the encodingScheme

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/...

2004-12-06 Thread Shapira, Yoav
] Sent: Saturday, December 04, 2004 10:24 PM To: Tomcat Users List Subject: Re: Filter/... On Sat, Dec 04, 2004 at 05:56:15PM +, Brij Naald wrote: : The filter I have now, always get called when there is an incoming request. : But when a servlet uses a requestdispatcher to include another servlet

RE: Filter/...

2004-12-04 Thread Freddy Villalba A.
Hi Brij, I am not sure I have fully understood your question. In any case, I believe that for accomplishing what you've stated you have 2 options: - Use a listener class (it's like a filter, but it's automatically invoked by the servlet container on the ocurrence of different kinds of events,

RE: Filter/...

2004-12-04 Thread Brij Naald
Hi, you indeed didn't the question :-) (but still, thanks for answering!) The problem is as follows: I'm making a plugin which puts a wrapper around the request of a servlet. A servlet gets invoked by: doGet(HttpServletRequest request, HttpServletResponse response) What I want to do now is to put

RE: Filter/...

2004-12-04 Thread Freddy Villalba A.
PROTECTED] Enviado el: sábado, 04 de diciembre de 2004 18:56 Para: [EMAIL PROTECTED] Asunto: RE: Filter/... Hi, you indeed didn't the question :-) (but still, thanks for answering!) The problem is as follows: I'm making a plugin which puts a wrapper around the request of a servlet. A servlet

Re: Filter/...

2004-12-04 Thread QM
On Sat, Dec 04, 2004 at 05:56:15PM +, Brij Naald wrote: : The filter I have now, always get called when there is an incoming request. : But when a servlet uses a requestdispatcher to include another servlet, the : filter doesn't get called. This makes sense: filters are for external

Re: Filter Problem

2004-11-23 Thread Tim Funk
getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my contextPath is /more. If I request /more/cowbell.jsp. The contextPath is /more and the servletPath is /cowbell.jsp. -Tim Jack Lauman wrote: I have an access control filter that is supposed

Re: Filter Problem

2004-11-23 Thread Jack Lauman
Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my contextPath is /more. If I request /more/cowbell.jsp. The contextPath is /more and the servletPath is

Re: Filter Problem

2004-11-23 Thread Tim Funk
You probably want to ignore context path. Its servletPath you really care about. -Tim Jack Lauman wrote: Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my

Re: Filter Problem

2004-11-23 Thread Jack Lauman
Tim: Thanks for your help. It's fixed. Jack Tim Funk wrote: You probably want to ignore context path. Its servletPath you really care about. -Tim Jack Lauman wrote: Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp. For

RE: Filter tricks in tomcat

2004-11-09 Thread Shapira, Yoav
Hi, I assume that when you say capture you mean handle ? Or maybe wrap? To only handle outgoing (response) data in a filter, do something like this: public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws Blah { chain.doFilter(request, response);

Re: Filter tricks in tomcat

2004-11-09 Thread Peter Lin
actually, you can use filters to capture the response and then use a filter to dump the whole thing to the outputstream. What you'll have to do is create your own buffer to hold the content and not write to either the jspwriter or the printwriter in the servlet. the tricky part is this. if you

Re: Filter, HttpServletResponseWrapper, ServletOutputStream PrintWriter in Tomcat 5.x

2004-10-31 Thread Giampaolo Tomassoni
Never mind: was a buffering issue. The JspWriter uses HttpServletResponseWrapper#flushBuffer() call, which I didn't override. Thanks anyway, Giampaolo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

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

2004-10-22 Thread Donie Kelly
Hi Bill I've tried that but it doesn't appear to work. Is this because I need to upgrade to a later version of tomcat or what??? Thanks Donie -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: 22 October 2004 03:54 To: [EMAIL PROTECTED] Subject: Re

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

RE: filter config cause startup crash on Tomcat 5

2004-10-20 Thread Didier McGillis
the filter Tomcat no likie :) not sure what it is, any other suggestions. From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 Date: Tue, 19 Oct 2004 16:48:09 -0400 Try

RE: filter config cause startup crash on Tomcat 5

2004-10-20 Thread Phillip Qin
Have you changed it to url-pattern/sillyApe/*/url-pattern? BTW, post the error log. -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: October 20, 2004 8:17 AM To: [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 the filter Tomcat

RE: filter config cause startup crash on Tomcat 5

2004-10-20 Thread Didier McGillis
Got it! Stupid error. thanks From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 Date: Wed, 20 Oct 2004 09:57:48 -0400 Have you changed it to url-pattern/sillyApe

RE: filter config cause startup crash on Tomcat 5

2004-10-19 Thread Phillip Qin
Check the order in web.xml. -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: October 19, 2004 4:19 PM To: [EMAIL PROTECTED] Subject: filter config cause startup crash on Tomcat 5 I have created a DetectBrowser servlet to not allow certain browsers into the

RE: filter config cause startup crash on Tomcat 5

2004-10-19 Thread Didier McGillis
What order should it come in. Its near the top of the list. From: Phillip Qin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 Date: Tue, 19 Oct 2004 16:26:39 -0400 Check the order

RE: filter config cause startup crash on Tomcat 5

2004-10-19 Thread Phillip Qin
Try url-pattern /s.../* -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: October 19, 2004 4:31 PM To: [EMAIL PROTECTED] Subject: RE: filter config cause startup crash on Tomcat 5 What order should it come in. Its near the top of the list. From: Phillip Qin

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Yoav, So from what I know so far my /usr/local/tomcat/webapps/myapplication/WEB-INF/web.xml should look like the following: web-app filter filter-nameUrlFilter/filter-name filter-classUrlFilter/filter-class *Don't know how this should layout.* /filter filter-mapping

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread Nathan Maves
First of this is not a Tomcat question. This type of information is always available at http://java.sun.com or http://forum.java.sun.com/ To answer your questionYes. in-fact you can place the class where ever you want as long as it is in your classpath. Of course you will also have to

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Shapira, Yoav
Hi, First of this is not a Tomcat question. This type of information is always available at http://java.sun.com or http://forum.java.sun.com/ Right, but we do encourage general servlet and JSP related discussions here too. So from what I know so far my

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
- Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 8:56 AM Subject: Re: Filter on url example - Filter out hack attempts First of this is not a Tomcat question. This type of information is always available at http

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread Adam Buglass
. Please let me know if there is a list more appropriate for new users. Thanks, Larry Nobs - Original Message - From: Nathan Maves [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 8:56 AM Subject: Re: Filter on url example - Filter out hack

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Yoav, Make sure you understand what a request URI is for the HTTP protocol. It will have neither the GET (method name) nor the protocol spec (HTTP/1.1 above). Read and understand the JavaDocs for the HttpServletRequest interface completely. I have been looking at the Access Logs daily.

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Shapira, Yoav
Hi, I have been looking at the Access Logs daily. Anytime a legitimate user accesses my site everything is preceded with a GET or POST and a jsp or gif that I can recognize. Initially a session starts off with a plain GET / HTTP/1.1 or 1.0 so I should allow these, but all other legitimate

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
:30 AM Subject: Re: Filter on url example - Filter out hack attempts Hi Larry, as someone who has only been using tomcat (apart from the deploy tool) since August and who has had to greatly improve my Java skills since the same time... I suggest the best way to learn is to get your hands dirty

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Ralph Einfeldt
PM To: Tomcat Users List Subject: Re: Filter on url example - Filter out hack attempts I am a newbie to Java and Tomcat, and I did spend two days with two Tomcat books I bought and Google trying to find some instructions I could understand before posting a question to this list

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread lrnobs
Yoav, Ok, thank you. I appreciate all your help. Larry Nobs - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 9:37 AM Subject: RE: Filter on url example - Filter out hack attempts Hi, I have been

Re: Filter on url example - Filter out hack attempts

2004-05-11 Thread Nathan Maves
as there you may ask questions about java, jsp, servlets and other things that are not drectly related with tomcat. -Original Message- From: lrnobs [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 11, 2004 4:17 PM To: Tomcat Users List Subject: Re: Filter on url example - Filter out hack attempts

RE: Filter on url example - Filter out hack attempts

2004-05-10 Thread Shapira, Yoav
Hi, This is a trivial filter: public class URLFilter implements Filter { ... public void doFilter(...) { if(req instance of HttpServletRequest) { HttpServletRequest hreq = (HttpServletRequest) req; String uri = hreq.getRequestURI(); if(allow(uri)){

RE: Filter chain

2004-03-12 Thread Shapira, Yoav
Hi, Is it possible to specify the sequence of filters being processed by the container? I have a checksession filter that throws a user object into the session and a second filter will gather statistics on requestsI want the checksession filter to be processed first The Servlet Spec is

RE: Filter chain

2004-03-12 Thread Pitre, Russell
Thanx, I must have over looked it ;) -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 10:44 AM To: Tomcat Users List Subject: RE: Filter chain Hi, Is it possible to specify the sequence of filters being processed by the container? I have

RE: Filter causing memory on TC-5.0.18 and 5.0.19

2004-03-08 Thread Ilyschenko, Vlad
- Regards, Vlad Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 1:53 PM To: Tomcat Users List Subject: RE: Filter causing memory on TC-5.0.18 and 5.0.19 Hi, We search hard in the archive and found many, many questions in regards of this. Can you

RE: Filter causing memory on TC-5.0.18 and 5.0.19

2004-03-08 Thread Shapira, Yoav
Hi, We also are experiencing memory leaks in tomcat since we upgraded from 5.0.16 to 5.0.19. In particular I found out that web app sessions will not timeout with session-timeout=1 (or rather it will, but not after 1 minute): What is it recently with people hijacking threads? Please use a

RE: Filter causing memory on TC-5.0.18 and 5.0.19

2004-03-08 Thread Ilyschenko, Vlad
Sorry about that. I was thinking that those issues are related. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, March 08, 2004 3:54 PM To: Tomcat Users List Subject: RE: Filter causing memory on TC-5.0.18 and 5.0.19 Hi, We also are experiencing memory

RE: Filter causing memory on TC-5.0.18 and 5.0.19

2004-03-08 Thread Shapira, Yoav
Hi, We search hard in the archive and found many, many questions in regards of this. Can you please point out specific messages or threads in the archives that ask about a filter causing a tomcat memory leak? Yoav Shapira This e-mail, including any attachments, is a confidential business

RE: Filter mapping problem under Solaris 9

2004-02-20 Thread Boland, Dave
PROTECTED] Sent: Thursday, February 19, 2004 1:44 PM To: Tomcat Users List Subject: RE: Filter mapping problem under Solaris 9 Howdy, Hmm, strange ;(. Are these parameters/your form using standard encoding or a different charset? Yoav Shapira Millennium ChemInformatics -Original Message

RE: Filter mapping problem under Solaris 9

2004-02-20 Thread Shapira, Yoav
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 more consistent. This raises the obvious question of 'am I setting the url-pattern correctly?' I would assume that it would be possible

RE: Filter mapping problem under Solaris 9

2004-02-20 Thread Boland, Dave
[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

RE: Filter mapping problem under Solaris 9

2004-02-20 Thread Shapira, Yoav
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

RE: Filter mapping problem under Solaris 9

2004-02-19 Thread Shapira, Yoav
Howdy, Hmm, strange ;(. Are these parameters/your form using standard encoding or a different charset? Yoav Shapira Millennium ChemInformatics -Original Message- From: Boland, Dave [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 7:15 AM To: '[EMAIL PROTECTED]' Subject:

Re: Filter to detect a user not logged in

2004-01-27 Thread Bill Barker
Merrill Cornish [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm trying to learn filters by writing one to detect when someone who has not logged in tries to access a JSP page that requires login. From what I've read, this seems to be one common use of filters. I think I

RE: filter problem

2003-11-24 Thread Shapira, Yoav
Howdy, Perhaps something is messed up in your browser? I don't like using spaces in servlet or filter names, but that's just me ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: bwasko [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2003 7:29 AM To: Tomcat Users

Re: Filter for Form Authentication Problem

2003-10-01 Thread Adam Hardy
That bugzilla issue only addresses filters, not character encoding, with j_security_check. On the one hand the servlet 2.4 spec actually addresses response character encoding issues nicely, with the addition of stuff like: locale-encoding-mapping-list locale-encoding-mapping

Re: Filter for Form Authentication Problem

2003-10-01 Thread Tim Funk
See the tomcat-dev list archives, there are conversations about that now. (or the last day or 2) -Tim Adam Hardy wrote: Do you know when the 2.4 spec goes final? Adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Filter for Form Authentication Problem

2003-09-30 Thread Bill Barker
Joerg Heinicke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Tim Funk wrote: You can't intercept j_security_check with a filter, it violates the spec. -Tim This is at least one answer to my thread started last week: http://www.mail-archive.com/[EMAIL

Re: Filter for Form Authentication Problem

2003-09-30 Thread Tim Funk
Did that alrady. Here's the gory details and the conclusion is valid for 4 and 5. It seems the spec folks took care of the character encoding issue but forgot how to fix it for j_security_check. So the short term solution is probably a custom solution per platform. :( (Maybe google has the

Re: Filter for Form Authentication Problem

2003-09-30 Thread Lawence
Thanks for the replies. So this means I have to go with custom realm and authenticator? Actually I first tried with them but got stuck, I guess I was quite close to success though. I posted one article asking for help several days ago but got no response at all. I am reposting it below,

Re: Filter for Form Authentication Problem

2003-09-29 Thread Tim Funk
You can't intercept j_security_check with a filter, it violates the spec. -Tim Lawence wrote: Dear All, I wrote a filter servlet that does some preprocessing. Basically it intercepts the call of j_secuity_check. The problem is that most of the time it was just bypassed. The only way to

Re: Filter for Form Authentication Problem

2003-09-29 Thread Joerg Heinicke
Tim Funk wrote: You can't intercept j_security_check with a filter, it violates the spec. -Tim This is at least one answer to my thread started last week: http://www.mail-archive.com/[EMAIL PROTECTED]/msg104931.html. What are the consequences/possibilities to set the request character encoding

Re: Filter for Form Authentication Problem

2003-09-29 Thread Tim Funk
Honestly, I personally have no clue with respect to encoding issues. I will be playing with UTF-8 soon but ala, I am stuck in ISO8859-1 for now. But my gut feel is container authentication implementation is purely container dependent. So you'll be stuck with tomcat, or weblogic, or ???.

Re: Filter and servlet mapping problem

2003-07-29 Thread Bill Barker
By the time it has gotten to your Filter, Tomcat has already decided on which Servlet will serve the request (and it is too late to change it's mind :). You need to do something like: String oldURI = unWritePath(request.getServletPath()+request.getPathInfo()); RequestDispatcher rd =

RE: Filter and servlet mapping problem

2003-07-29 Thread Bodycombe, Andrew
Maybe you could try rewriting your URL as /myjsp.jsp?time=timestamp_in_millis instead of /myjsp_timestamp_in_millis.jsp -Original Message- From: Mailing Listen [mailto:[EMAIL PROTECTED] Sent: 28 July 2003 11:16 To: Tomcat Users List Subject: Filter and servlet mapping problem I have

RE: Filter and servlet mapping problem

2003-07-28 Thread Shapira, Yoav
Howdy, Taking the Filter out of the equation, can you find and use the servlets in your context? Yoav Shapira Millennium ChemInformatics -Original Message- From: Mailing Listen [mailto:[EMAIL PROTECTED] Sent: Monday, July 28, 2003 8:19 AM To: [EMAIL PROTECTED] Subject: Filter and

Re: Filter out certain user accounts

2003-06-02 Thread Tim Funk
You should be able to cast ServletRequest to HttpServletRequest. Then you'll have access to getUserPrincipal() -Tim Dan Tran wrote: Hello, I would like the build filter to check for a site maintainant flag set in application context and disallow certain user to passthruand route them to

Re: Filter out certain user accounts

2003-06-02 Thread Dan Tran
supper!!! Thanks - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, June 01, 2003 5:35 PM Subject: Re: Filter out certain user accounts You should be able to cast ServletRequest to HttpServletRequest. Then you'll have access

RE: Filter setup problem

2003-03-19 Thread mike jackson
Nevermind I found it. Stupidness strikes again. --mikej -Original Message- From: mike jackson [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 10:24 AM To: 'Tomcat Users List' Subject: Filter setup problem I'm having a problem with the initial parameter options with

Re: Filter - ServletContext

2003-02-27 Thread Jon Wingfield
Try: sctx.getInitParameter(...) instead of sctx.getAttribute(...) Günter Kukies wrote: Hello, I want to read some context-param from web.xml within a filter. But the getAttribute is always null. There is no problem to get the same context-param within a Servlet. Thanks Günter Here is the

Re: Filter - ServletContext

2003-02-27 Thread Erik Price
Günter Kukies wrote: Hello, I want to read some context-param from web.xml within a filter. But the getAttribute is always null. There is no problem to get the same context-param within a Servlet. Don't you want getInitParameter() ? Erik

Re: Filter - ServletContext

2003-02-27 Thread Günter Kukies
Subject: Re: Filter - ServletContext Günter Kukies wrote: Hello, I want to read some context-param from web.xml within a filter. But the getAttribute is always null. There is no problem to get the same context-param within a Servlet. Don't you want getInitParameter() ? Erik

Re: Filter - ServletContext

2003-02-27 Thread Erik Price
Günter Kukies wrote: Oh, sorry getInitParameter() was the solution. Thanks for your hint. But why is the ServletContext not the same in Filter and HTTPServlet? I am confused. There is one ServletContext in a webapp (as far as I know, which isn't very far). You can access it from a Filter

Re: Filter problems

2003-02-08 Thread Craig R. McClanahan
On Sat, 8 Feb 2003, Manavendra Gupta wrote: Date: Sat, 8 Feb 2003 14:12:38 -0800 From: Manavendra Gupta [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Filter problems Hi, I have a simple security filter for

Re: Filter and RequestDispatcher.forward()

2003-01-30 Thread Tomasz Stanczak
I have noticed that, too, while preparing a WebLogic web application to run on Tomcat. The code of ApplicationDispatcher says: strongIMPLEMENTATION NOTE/strong: This implementation assumes that no filters are applied to a forwarded or included resource, because they were already done for the

Re: Filter: Reading the http response content

2003-01-30 Thread Tim Funk
You must wrap the response in a HttpServletResponse wrapper then override the getOutputStream/Writer with your own methods which provide a proxy to the real getOutputStream/Writer. The wrapped object then goes to the next filter in the chain. In other words, a pain in the a$$. Before

Re: Filter: Reading the http response content

2003-01-30 Thread Erik Price
Tim Funk wrote: You must wrap the response in a HttpServletResponse wrapper then override the getOutputStream/Writer with your own methods which provide a proxy to the real getOutputStream/Writer. The wrapped object then goes to the next filter in the chain. I think that what he is asking

RE: Filter: Reading the http response content

2003-01-30 Thread rf
Thanks guys, Google actually gave me the fish itself :-) http://forum.java.sun.com/thread.jsp?thread=338226forum=33message=1387958 The whole code is there at the end, and it works! __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up

Re: Filter and RequestDispatcher.forward()

2003-01-29 Thread Tim Funk
Filters are only run once for the incoming request. See the archives for more information. -Tim Karl Kraft wrote: I've written a Filter to get applied to all page requests so that I can perform some access control and logging. However, when a servlet redirects using the forward() method of

Re: Filter doing a redirect

2003-01-23 Thread Bill Barker
Calling response.sendRedirect sets the HTTP status code to 302, and populates the 'location' response header. You almost always simply want to 'return;' from your Filter in this case (since the response is complete), rather than proceed with doFilterChain. Erik Price [EMAIL PROTECTED] wrote in

Re: Filter shows blank page in 4.1.18

2003-01-18 Thread Craig R. McClanahan
On Sat, 18 Jan 2003, Affan Qureshi wrote: Date: Sat, 18 Jan 2003 16:35:19 +0500 From: Affan Qureshi [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Subject: Filter shows blank page in 4.1.18 I had filters configured for my webapp which

RE: filter jsp:include servletPath?

2002-12-12 Thread Turoff, Steve
Aaron, I am interested in doing the same thing. Can you post the filter and taglib? Thanks, STeve -Original Message- From: AAron nAAs [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 11:45 AM To: [EMAIL PROTECTED] Subject: Re: filter jsp:include servletPath? Due

RE: filter jsp:include servletPath?

2002-12-02 Thread Cox, Charlie
no, filters are only applied on the original request. Charlie -Original Message- From: AAron nAAs [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: filter jsp:include servletPath? Due to the complexity of the question

RE: filter jsp:include servletPath?

2002-12-02 Thread AAron nAAs
as well. -AAron From: Cox, Charlie [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: filter jsp:include servletPath? Date: Mon, 2 Dec 2002 07:50:48 -0500 no, filters are only applied on the original request. Charlie

Re: Filter in Tomcat 3.3.1

2002-12-01 Thread Craig R. McClanahan
Please do not cross-post questions on both the DEV and USER lists. In particular, this is a USER list sort of question. On Thu, 28 Nov 2002, Laxmikanth M.S. wrote: Date: Thu, 28 Nov 2002 17:49:09 +0530 From: Laxmikanth M.S. [EMAIL PROTECTED] Reply-To: Tomcat Developers List [EMAIL PROTECTED]

Re: filter jsp:include servletPath?

2002-11-28 Thread AAron nAAs
Due to the complexity of the question and probably vendor specific-ness of the answer, I've altered course and solved the problem. I wrote my own small taglib to implement the jsp:include functionality. I just need to change the jsp:include page=/include.html/ tags into mylib:include

RE: filter doesn't work at Tomcat4.1.12!?

2002-11-12 Thread Cox, Charlie
if your filter is not being called, then the mapping is probably not correct. Please provide the relevant portions of your web.xml. Also provide the url that your are using for testing. You can change names to protect the innocent. did you look in the logs to see if there are any messages?

Re: filter doesn't work at Tomcat4.1.12!?

2002-11-11 Thread Jacob Kjome
Hi Johnny, Based on the limited info you provided, I can't point to your exact problem, but there are a few general things to check to make sure you have configured properly. Make sure that you have your filter defined and provide a mapping for it such as this: filter filter-nameMy

Re: filter doesn't work at Tomcat4.1.12!?

2002-11-11 Thread Kristian A. Leth
Does your web.xml read like this ? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; Or like ? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/dtd/web-app_2_2.dtd; Must

RE: filter-mapping,process /* except /x?

2002-10-28 Thread Cox, Charlie
there is no way. you will have to do that in your filter. you could apply your filter to subdirectories individually instead of /* and leave your login page in the root or in an unmapped directory. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:rhodespc;telerama.com]

Re: filter-mapping,process /* except /x?

2002-10-28 Thread Craig R. McClanahan
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 on

Re: filter to change jsessionid cookie almost done, but need little help

2002-09-30 Thread rhodespc
The Tomcat sso solution only allows sso between applications in a single container. My sso solution allows sso across multiple jvm's in different hosts in the same domain, as well as the SSO for the single JVM. The SSO for tomcat is quite limited. I agree that the jsessionid is part of the

Re: filter to change jsessionid cookie almost done, but need littlehelp

2002-09-30 Thread Craig R. McClanahan
On Mon, 30 Sep 2002 [EMAIL PROTECTED] wrote: Date: Mon, 30 Sep 2002 12:53:54 -0400 (EDT) From: [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: filter to change jsessionid cookie almost done, but need little help

Re: filter to change jsessionid cookie almost done, but need littlehelp

2002-09-29 Thread Craig R. McClanahan
On Sat, 28 Sep 2002, Phillip Rhodes wrote: Date: Sat, 28 Sep 2002 13:51:18 -0400 From: Phillip Rhodes [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: filter to change jsessionid cookie almost done, but need little help I am writing a

Re: filter

2002-08-14 Thread Capr1ce
Hi, do you have the elements in the correct order as specified by the web.xml's DTD? Refer to section 13.3 of the Servlet (2.3) spec. At 10:21 AM 14/08/2002 -0300, you wrote: I'm using Tomcat 4.0.4 I'm trying to declare a filter in web.xml file, but it refuses to work. Here is what I

Re: filter

2002-08-14 Thread Mark O'Driscoll
filter-classcom.test.FilterTest/filter-name ^^^ // should be /filter-class Failing that, i'd have to see the error but my guess is that you have the order of things in your web.xml wrong. filter tags should appear after

Re: filter

2002-08-14 Thread Cédric Viaud
filter-classcom.test.FilterTest/filter-name Your end tag dosen't fit your start tag. change it to : filter-classcom.test.FilterTest/filter-class regards, Cédric - Original Message - From: Felipe Schnack [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 14,

Re: filter

2002-08-14 Thread Felipe Schnack
Yes, the order of mostly everything was wrong, thank you very much :-) Anyway, the tag thing was an typo. On Wed, 2002-08-14 at 10:24, Mark O'Driscoll wrote: filter-classcom.test.FilterTest/filter-name ^^^ // should be

Re: Filter order of operation

2002-07-23 Thread Craig R. McClanahan
On Tue, 23 Jul 2002, Jacob Hookom wrote: Date: Tue, 23 Jul 2002 12:54:52 -0500 From: Jacob Hookom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Filter order of operation I know that a single request can come through

RE: Filter order of operation

2002-07-23 Thread Jacob Hookom
PM To: Tomcat Users List Subject: Re: Filter order of operation On Tue, 23 Jul 2002, Jacob Hookom wrote: Date: Tue, 23 Jul 2002 12:54:52 -0500 From: Jacob Hookom [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Filter order

Re: Filter order of operation

2002-07-23 Thread Will Hartung
PROTECTED] Sent: Tuesday, July 23, 2002 11:35 AM Subject: RE: Filter order of operation Cheers, I did a search previously on sun's site but everything seemed to only skim the surface. Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire -Original Message

RE: filter to set content type

2002-07-22 Thread Dmitry Melekhov
you need a wrapper for the response object. Sorry, I can't understand how it works yet :-( Anyway, I wrote wrapper: import javax.servlet.http.*; public class MyResponseWrapper extends HttpServletResponseWrapper { public MyResponseWrapper(HttpServletResponse response) {

RE: filter to set content type

2002-07-22 Thread Craig R. McClanahan
like: response.setHeader(Content-Type, text/html); Craig On Tue, 23 Jul 2002, Dmitry Melekhov wrote: Date: Tue, 23 Jul 2002 09:13:56 +0500 From: Dmitry Melekhov [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Subject: RE: filter to set

Re: filter to set content type

2002-07-22 Thread Dmitry Melekhov
Craig R. McClanahan wrote: You are trying to set the content type on the real response after it's been flushed (if the response is bigger than the output buffer), which won't do any good because the HTTP headers are long gone. Try changing the setContentType() method in your wrapper to

RE: filter questions

2002-01-09 Thread Cox, Charlie
I have read in the spec and tried a filter myself, and I have a few questions: 1. Where the spec(pg 45) says: Only one instance per filter declaration in the deployment descriptor is instantiated per Java virtual machine of the container. I read this as it works similar to a

Re: filter questions

2002-01-08 Thread Craig R. McClanahan
On Tue, 8 Jan 2002, Cox, Charlie wrote: Date: Tue, 8 Jan 2002 16:16:44 -0500 From: Cox, Charlie [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: filter questions I have read in the spec and tried a filter myself, and I

Re: Filter mapping question

2001-12-28 Thread Craig R. McClanahan
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

  1   2   >