Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Craig R. McClanahan
See below. On Wed, 27 Nov 2002, Stephen Riek wrote: Date: Wed, 27 Nov 2002 05:55:11 + (GMT) From: Stephen Riek [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Tomcat Filter with RequestDispatcher

Re: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-26 Thread Stephen Riek
this could be referring to then, unless it means one of Tomcat's distribution classes. To further debug, I removed ALL other classes under WEB-INF/classes, so that I only have my one Filter there. I also removed all jars from WEB-INF/lib, then restarted Tomcat. Therefore, the only superclass involved

Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Triptpal Singh Lamba
,param 2); % Then all JSP elements are picked from there. Thanks Tript Singh - Original Message - From: Stephen Riek [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, November 24, 2002 6:42 PM Subject: help with multilingual JSP sites pls. using a Filter to rewrite

Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Stephen Riek
Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem explained very simply. I have a sitemap as follows: /en -- /Products --

RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Cox, Charlie
use request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED

RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Ron Smits
The browser can tell you the language that the system is setup for: Accept-Language: en-us, en;q=0.50 This is from my Mozilla setup All modern browsers will return an Accept Language string Another question related to this, Are you telling me that all your jsp pages have the actual content

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek
Thanks for the reply Ron, I've heard of people using Accept-Language before but have my own doubts about that. For example, using Tomcat's example servlet to examine the request. ( http://127.0.0.1:8080/examples/servlet/RequestHeaderExample ) I find that accept-language is always en-us on my

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek
request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]] Sent

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Cox, Charlie
You can use a servlet or a filter. Filter mappings can overlap servlet mappings if you need them to. You can map all requests, or you can only map the specific paths for which you will use forward(). You probably want a filter if you are going to map all requests. glad to help :-) Charlie

Re: help with multilingual JSP sites pls. using a Filter to rewritethe URL ?

2002-11-25 Thread Kwok Peng Tuck
Why don't you look up on resource bundles instead? Stephen Riek wrote: Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest so that I have one JSP serving up French and English pages, depending on the language that the user selected on my site. Here is the problem

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Stephen Riek
Oh, I didn't realize that you could use a RequestDispatcher within a Filter, but now that I look at the Filter documentation again, I don't see any reason why not. Thanks, that's a good idea. That also explains why my original subject line was using a Filter to rewrite the URL - I initially

help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-24 Thread Stephen Riek
I'd like for a request to webapp/en/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'en'. Likewise, a request to webapp/fr/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'fr'. Is this possible with Filters? If not, is there

can a Tomcat Filter rewrite the URL ?

2002-11-22 Thread Stephen Riek
I'd like for a request to webapp/en/Folder/File to be mapped to webapp/Folder/File but with a parameter 'lang' set to 'en'. Likewise, a request to webapp/fr/Folder/File to be mapped to webapp/Folder/File but with a parameter 'lang' set to 'fr'. Is this possible with Filters? If not, is there

Re: can a Tomcat Filter rewrite the URL ?

2002-11-22 Thread Craig R. McClanahan
On Fri, 22 Nov 2002, Stephen Riek wrote: Date: Fri, 22 Nov 2002 09:40:11 + (GMT) From: Stephen Riek [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: can a Tomcat Filter rewrite the URL ? I'd like for a request to webapp

RE: Servlet filter mapping

2002-11-17 Thread Reynir Hübner
constraints as well as filter mappings): * Exact match (/foo) * Path match (/foo/*) * Extension match (*.foo) * Default servlet (/) which is useful only for servlet mappings There is no legal syntax to say all but this set of paths. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED

RE: Servlet filter mapping

2002-11-17 Thread Craig R. McClanahan
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

Servlet filter mapping

2002-11-16 Thread Reynir Hübner
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

Re: Servlet filter mapping

2002-11-16 Thread Craig R. McClanahan
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

filter doesn't work at Tomcat4.1.12!?

2002-11-12 Thread Johnny Cui
Hi all, I have check every possible error according to some friends suggestion, however, my own filter still doesn't work.It is just a authenticater filter. the weird things is, I can see the print out lines in the filter.init() methods, this means the container has create a instance for my

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

filter doesn't work at Tomcat4.1.12!?

2002-11-11 Thread Johnny Cui
Hi all, I am trying to deploy a filter to my application in Tomcat 4.1.12, since the code for filter is a sample code from reference book and I do exactly to the web.xml for my application, however , the filter did not work. Does anyone had experience in deploy filters on Tomcat4.1.12? Does

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
read like the top line or Tomcat won't understand that filter tags are a part of the web.xml Med venlig hilsen Kleth -- Kristian A. Leth. Systemsdeveloper, Maersk Data A/S

filter-mapping,process /* except /x?

2002-10-28 Thread rhodespc
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

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] Sent

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

[MVC] best practice: Filter or Controller?

2002-10-22 Thread garrett smith
Hey, I am using a controller servlet. Maybe I should be using a filter, instead. If the action is successful, the location will be the successURL, otherwise, it will be failureURL. In my controller's init, I use config.getInitParam to get successURL and failureURL. In web.xml, I have the init

Re: [MVC] best practice: Filter or Controller?

2002-10-22 Thread Tim Funk
should be using a filter, instead. If the action is successful, the location will be the successURL, otherwise, it will be failureURL. In my controller's init, I use config.getInitParam to get successURL and failureURL. In web.xml, I have the init params defined: init-param param

Is there any way to read the response headers in a filter in Tomcat 4.0.3 ?

2002-10-21 Thread ifriedri
Hi, I want to write a filter for Tomcat 4.0.3 which should record all the traffic.But I cannot find any way to question the values of the headers of a response in my ResponseWrapper. Normal HttpServletResponse class doesn't have any getter methods for headers. In the debugger I can see

Re: Is there any way to read the response headers in a filter in Tomcat 4.0.3 ?

2002-10-21 Thread Andreas Probst
() { return status; }//getStatus }//class In your filter you receive a ServletResponse. Cast it to HttpServletResponse. Instantiate your LocalHttpServletResponseWrapper. Pass this new object to the doFilter. Afterwards you can use your getter methods. The caller of your filter will have

Re: Is there any way to read the response headers in a filter in Tomcat 4.0.3 ?

2002-10-21 Thread Andreas Probst
) { super(res); }//constructor public void setStatus(int sc) { super.setStatus(sc); this.status = sc; }//setStatus public int getStatus() { return status; }//getStatus }//class In your filter you receive a ServletResponse. Cast it to HttpServletResponse

RE: Exception starting filter Security Filter

2002-10-15 Thread Dan Payne
: Exception starting filter Security Filter Hi! In fact I was wrong in my last post. As I found out later, it did not work. I found a solution for my problem but I am not sure if it also applies to yours, Dan. Sorry for not sharing my knowledge until now, but it did not seem to interest anyone ;) During

RE: Exception starting filter Security Filter

2002-10-14 Thread Dan Payne
combinations but to no avail. What do you think? -Dan -Original Message- From: Volker Leidl [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 3:14 AM To: Tomcat Users List Subject: Re: Exception starting filter Security Filter Hi! In fact I was wrong in my last post. As I found out

Re: Exception starting filter Security Filter

2002-10-10 Thread Volker Leidl
tomcat instances, using the CATALINA_BASE env. variable. -Dan -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 3:38 PM To: 'Tomcat Users List' Subject: RE: Exception starting filter Security Filter someone else had this problem a last week

RE: Exception starting filter Security Filter

2002-10-10 Thread Cox, Charlie
-Original Message- From: Volker Leidl [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 4:14 AM To: Tomcat Users List Subject: Re: Exception starting filter Security Filter Hi! In fact I was wrong in my last post. As I found out later, it did not work. I found

Re: Exception starting filter Security Filter

2002-10-10 Thread Volker Leidl
Cox, Charlie wrote: -Original Message- From: Volker Leidl [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 4:14 AM To: Tomcat Users List Subject: Re: Exception starting filter Security Filter Hi! In fact I was wrong in my last post. As I found out later, it did not work

RE: Exception starting filter Security Filter

2002-10-10 Thread Dan Payne
starting filter Security Filter Hi! In fact I was wrong in my last post. As I found out later, it did not work. I found a solution for my problem but I am not sure if it also applies to yours, Dan. Sorry for not sharing my knowledge until now, but it did not seem to interest anyone ;) During

Exception starting filter Security Filter

2002-10-09 Thread Dan Payne
StandardContext[]: Exception starting filter Security Filter org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java

RE: Exception starting filter Security Filter

2002-10-09 Thread Cox, Charlie
filter Security Filter I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from sourceforge.net, which is a pseudo container managed JDBC/MySQL security realm. it's all running on win2000. i've also upgraded my commons-logging to 1.0.2 to see if that helps, but to no avail (although

RE: Exception starting filter Security Filter

2002-10-09 Thread Dan Payne
-Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 3:38 PM To: 'Tomcat Users List' Subject: RE: Exception starting filter Security Filter someone else had this problem a last week. http://www.mail-archive.com/tomcat-user@jakarta.apache.org

[OT] Sevlet Filter + Deployment Descriptor

2002-09-30 Thread gautam
Hello, I am trying to use the new javax.servlet.Filter interface and have a question about the deployment descriptor for filters. How do I specify more than one URL mapping ? Can I do it like in the example below ? filter-mapping filter-namesomeFilterService/filter-name url

RE: TC4 servlet filter behavior different from WLS7

2002-09-30 Thread Rob Worsnop
I have opened a bug report against WebLogic (case # 358813). It will be interesting to see what they do with it. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 1:41 PM To: Tomcat Users List Subject: Re: TC4 servlet filter behavior

Re: [OT] Sevlet Filter + Deployment Descriptor

2002-09-30 Thread Craig R. McClanahan
On Tue, 20 Aug 2002, gautam wrote: Date: Tue, 20 Aug 2002 14:59:48 +0530 From: gautam [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: TomCat User [EMAIL PROTECTED] Subject: [OT] Sevlet Filter + Deployment Descriptor Hello, I am trying to use the new

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

2002-09-30 Thread rhodespc
of the spec, we agree with all specs, right? But we can have cookie name collisions if you try to raise the scope/domain of the jsessionid cookie. My original problem is that I am not able to intercept the setting of the jsessionid cookie in my filter. Can you provide any guidance on how I may intercept

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

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

2002-09-28 Thread Phillip Rhodes
, etc... I wrote a filter that reads the jsessionid and change the scope and domain that it can be read by any application in that domain. My problem is that in the first request in my filter (and to the app), the cookie may not be set. No problem (or so i thought!) . I created

TC4 servlet filter behavior different from WLS7

2002-09-27 Thread Rob Worsnop
I am using Tomcat 4.1.1.12, and comparing the servlet filter behavior with that of WebLogic 7.0 SP1. The behavior is different. The difference is that WebLogic filters resources when they are being accessed via a forward, while Tomcat does not. For example: I have a servlet /hello, which

RE: TC4 servlet filter behavior different from WLS7

2002-09-27 Thread Shapira, Yoav
Hi, For example: I have a servlet /hello, which forwards to /hello.jsp. I have a filter that is mapped to /hello.jsp. Accessing /hello in WebLogic will trigger the filter. That doesn't happen in Tomcat. It was my understanding that the tomcat behavior here is correct. This is because you have

RE: TC4 servlet filter behavior different from WLS7

2002-09-27 Thread Rob Worsnop
Er.. thanks for the response, but I understand precisely why Tomcat does not trigger the filter. I was looking for clarification on whether it is Tomcat or WebLogic that is not compliant with the spec (which I *have* read, BTW). One of the reasons I want to know is that we are using WAS4.x

Re: TC4 servlet filter behavior different from WLS7

2002-09-27 Thread Tim Funk
See section 6.1.1 of the Spec 2.3 When the container receives the incoming request, it takes the first filter instance in the list and calls its doFilter() method, passing in the ServletRequest and ServletResponse, and a reference to the FilterChain object it will use. Therefore filters

RE: TC4 servlet filter behavior different from WLS7

2002-09-27 Thread Rob Worsnop
of the spec. Unfortunately I have just tested my hello app with WAS5 beta. It behaves the same way as WLS7 (the filter is invoked when I forward to hello.jsp). Therefore, I think I'll keep my filter implementation working the wrong way, so our app's behavior does not change when we move to WAS5

RE: emails to list get language filter replies

2002-09-26 Thread Andreas Mohrig
of trouble. regards Andreas Mohrig -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 5:50 AM To: Tomcat Users List Subject: Re: emails to list get language filter replies On Wed, 25 Sep 2002, Brad Plies wrote: Hehe, notice the segment If you

RE: emails to list get language filter replies

2002-09-26 Thread Andreas Mohrig
I got the filter-response, too. Maybe it is some e-mail-server near to the list server after all? greetings Andreas Mohrig -Original Message- From: Andreas Mohrig [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 26, 2002 9:54 AM To: 'Tomcat Users List' Subject: RE: emails to list

emails to list get language filter replies

2002-09-25 Thread Mona Wong-Barnum
Sorry, my initial reply got filtered by some kind of language censor. I've been getting this with every email I sent to the list. I thought it was just me. But now looks like you are too. Uh, is this a problem for the list? - Begin Forwarded Message

Re: emails to list get language filter replies

2002-09-25 Thread Brad Plies
Hehe, notice the segment If you have any questions, please direct them to [EMAIL PROTECTED] Not to dwell off-topic, but I have a question for them: 'Why are they interfering with our communication?' Also note this: MIMEsweeper ChineseWall TXU Companies Internet, Intranet and E-mail Policy

Re: emails to list get language filter replies

2002-09-25 Thread Milt Epstein
On Wed, 25 Sep 2002, Mona Wong-Barnum wrote: Sorry, my initial reply got filtered by some kind of language censor. I've been getting this with every email I sent to the list. I thought it was just me. But now looks like you are too. Uh, is this a problem for the list? [ ... ]

Re: emails to list get language filter replies

2002-09-25 Thread Milt Epstein
this filter set up (that doesn't make it any less obnoxious/presumptuous, but perhaps a little more innocent). You could try sending a message to that address above and asking them your question(s). Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies

isapi filter

2002-09-12 Thread Jon Morgan
Well, IIS works as does tomcat. The plugin appears to almost work. Perhaps there is a problem or someone there might shed some light on this for me. I try to access the extension and I see it hit tomcat. Tomcat gives me a 404 error but IIS logs a 200. My browser displays the 404.

RE: anyone using filter to set content length of response?

2002-09-08 Thread tek1
i've attached the source files (created as a netbeans web module, so the source and .class files appear in the same directory), as well as the .war file. i d/led jboss3.0.2 (using jetty) today and dropped my .war file in the deploy directory and my mobile client had no problem with the filter

Re: altering the request URI in a filter

2002-09-03 Thread jfc
Martin Cooper wrote: -Original Message- From: jfc [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 1:51 AM To: Tomcat Users List Subject: Re: altering the request URI in a filter [snip] Hi, Thanks for the reply. How can I actually set the new value/s on the request? I

RE: altering the request URI in a filter

2002-09-03 Thread Cox, Charlie
would RequestDispather.forward() work for you? you can use this from within your filter and it will not reinvoke the authentication. Charlie -Original Message- From: jfc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 9:26 AM To: Tomcat Users List Subject: Re: altering

Re: altering the request URI in a filter

2002-09-03 Thread jfc
Cox, Charlie wrote: would RequestDispather.forward() work for you? you can use this from within your filter and it will not reinvoke the authentication. Charlie -Original Message- From: jfc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 9:26 AM To: Tomcat Users List

Re: altering the request URI in a filter

2002-09-03 Thread jfc
jfc wrote: Cox, Charlie wrote: would RequestDispather.forward() work for you? you can use this from within your filter and it will not reinvoke the authentication. Charlie -Original Message- From: jfc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 9:26 AM

RE: altering the request URI in a filter

2002-09-03 Thread Cox, Charlie
I'm getting java.lang.IllegalStateException: Cannot forward after response has been committed ... etc At the end of my filter's doFilter method I am doing the following: if(stripped){ RequestDispatcher rd = request.getRequestDispatcher(requestURI);

RE: altering the request URI in a filter

2002-09-03 Thread Martin Cooper
OK, I'm confused now. Your original question was about how you could alter the request URI in a filter. Now, however, you seem to be asking about how you can alter the request URI in a Struts Action class or in your own version of the Struts RequestProcessor. What are you really trying to do

Re: altering the request URI in a filter

2002-09-03 Thread jfc
Cox, Charlie wrote: I'm getting java.lang.IllegalStateException: Cannot forward after response has been committed ... etc At the end of my filter's doFilter method I am doing the following: if(stripped){ RequestDispatcher rd = request.getRequestDispatcher(requestURI);

Re: altering the request URI in a filter

2002-09-03 Thread jfc
Martin Cooper wrote: OK, I'm confused now. Your original question was about how you could alter the request URI in a filter. Now, however, you seem to be asking about how you can alter the request URI in a Struts Action class or in your own version of the Struts RequestProcessor. What are you

Re: altering the request URI in a filter

2002-09-03 Thread jfc
Martin Cooper wrote: OK, I'm confused now. Your original question was about how you could alter the request URI in a filter. Now, however, you seem to be asking about how you can alter the request URI in a Struts Action class or in your own version of the Struts RequestProcessor. What are you

Re: altering the request URI in a filter

2002-09-02 Thread jfc
Filters is that anything is possible :-). The Filter (at least under Tomcat) will only be invoked after authentication, but before the Struts servlet. I would like to be able to strip a string from the request URI which is there solely for the purposes of enforcing the web container to obtain authen

RE: altering the request URI in a filter

2002-09-02 Thread Martin Cooper
-Original Message- From: jfc [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 1:51 AM To: Tomcat Users List Subject: Re: altering the request URI in a filter [snip] Hi, Thanks for the reply. How can I actually set the new value/s on the request? I don't see

altering the request URI in a filter

2002-09-01 Thread jfc
Hi, Tomcat 404, jdk1.3: Is it possible to alter the request's URI after authentication but before the request is delegated to a Struts action mapping? I would like to be able to strip a string from the request URI which is there solely for the purposes of enforcing the web container to

Re: altering the request URI in a filter

2002-09-01 Thread Bill Barker
possible :-). The Filter (at least under Tomcat) will only be invoked after authentication, but before the Struts servlet. I would like to be able to strip a string from the request URI which is there solely for the purposes of enforcing the web container to obtain authentication and authorizat

Re: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-21 Thread tek1
hi charlies and craig. thanks for your replies. At 08:21 02/08/19 -0700, you wrote: If your filter is calling response.setContentLength() -- or any other header setting method, such as trying to add a cookie -- after the response has been committed, then this attempt to set the header

Re: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-21 Thread hoju
Quoting tek1 [EMAIL PROTECTED]: do you happen to have the link to the article? i followed sun's example filter using a CharResponseWrapper and my filter's not working... :| thanks again for helping. i appreciate it. I found it at: http://java.sun.com/products/servlet/Filters.html

Re: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread tek1
HttpServletResponse.setContentLength(##) in the servlet, the client receives the data without problem. however, my filter is doing post-processing on what the servlet wrote before sending the response back to the client. as such, i change my servlet code to *not* set the content length, and instead

RE: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread Cox, Charlie
in Filter? ServletResponse.setContentLength()? hi craig. thanks for your reply. after digging deeper, i now know what's happening. it's quite strange. i'm calling tomcat from a (mobile) java client (not a web browser) and the client needs to know exactly how many bytes are being

Re: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread Craig R. McClanahan
On Mon, 19 Aug 2002, tek1 wrote: Date: Mon, 19 Aug 2002 18:15:54 +0900 From: tek1 [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: retrieving HttpSession in Filter? ServletResponse.setContentLength()? hi craig

Re: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread tek1
hi charlies and craig. thanks for your replies. At 08:21 02/08/19 -0700, you wrote: If your filter is calling response.setContentLength() -- or any other header setting method, such as trying to add a cookie -- after the response has been committed, then this attempt to set the header

Re[2]: retrieving HttpSession in Filter? ServletResponse.setContentLength()?

2002-08-19 Thread Jacob Kjome
CRM There was an example filter that did post-processing XSLT transformations CRM on Java Developer Connection (at java.sun.com) a while back, which CRM illustrated exactly this kind of processing. In fact, the original CRM version of the code in the article had exactly this sort of bug, and had

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, tek1 wrote: Date: Sat, 17 Aug 2002 15:03:28 +0900 From: tek1 [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: retrieving HttpSession in Filter? hello. in a filter, is it possible to cast the ServletRequest

Re: retrieving HttpSession in Filter?

2002-08-17 Thread tek1
eddie and craig, thanks for your replies. i was calling the HttpServletRequest.getSession() before the response was committed. in the below code on line 4, i didn't mention that was using a responseWrapper, so the servlet used the responseWrapper, and when control returned to the filter

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Nikola Milutinovic
Craig R. McClanahan wrote: This is not the right test for a newly created session, because there *was* no requested session. Try something like this instead: HttpSession session = request.getSession(false); if (session == null) { ... no session exists ... } else if

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, tek1 wrote: Date: Sat, 17 Aug 2002 17:47:32 +0900 From: tek1 [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: retrieving HttpSession in Filter? eddie and craig, thanks for your replies. i

Re: retrieving HttpSession in Filter?

2002-08-17 Thread Craig R. McClanahan
On Sat, 17 Aug 2002, Nikola Milutinovic wrote: Date: Sat, 17 Aug 2002 16:23:31 +0200 From: Nikola Milutinovic [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: retrieving HttpSession in Filter? Craig R. McClanahan wrote

Can't find the filter class :(

2002-08-16 Thread Josh
I've got this in my web.xml file: filter filter-nameprotectedFilter/filter-name filter-classau.com.multemedia.wf.misc.ProtectedFilter/filter-class /filter filter-mapping filter-nameprotectedFilter/filter-name url-pattern/protected/*/url-pattern /filter-mapping I get

Re: Can't find the filter class :(

2002-08-16 Thread Josh
: Friday, August 16, 2002 4:47 PM Subject: Can't find the filter class :( I've got this in my web.xml file: filter filter-nameprotectedFilter/filter-name filter-classau.com.multemedia.wf.misc.ProtectedFilter/filter-class /filter filter-mapping filter-nameprotectedFilter/filter-name

Re: Can't find the filter class :(

2002-08-16 Thread Craig R. McClanahan
On Fri, 16 Aug 2002, Josh wrote: Date: Fri, 16 Aug 2002 16:47:44 +1000 From: Josh [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], Josh [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Can't find the filter class :( I've got this in my web.xml

retrieving HttpSession in Filter?

2002-08-16 Thread tek1
hello. in a filter, is it possible to cast the ServletRequest to a HttpServletRequest and retrieve the HttpSession object, *if* the session has never been created before? i tried the following: 1 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws

Re: retrieving HttpSession in Filter?

2002-08-16 Thread Eddie Ruvinsky
for session tracking. This is because the [buffered] response could be flushed and the session cookie wouldn't be guaranteed a chance to be written as an HTTP response header. Hope that helps, -Eddie --- tek1 [EMAIL PROTECTED] wrote: hello. in a filter, is it possible to cast the ServletRequest

filter

2002-08-14 Thread Felipe Schnack
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 wrote: filter filter-nametestFilter/filter-name filter-classcom.test.FilterTest/filter-name /filter When I start Tomcat it says my XML is invalid. What I'm doing wrong

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 context

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

security filter Realm class file location

2002-08-02 Thread @Basebeans.com
Subject: security filter Realm class file location From: Torgeir Veimo [EMAIL PROTECTED] === I'm working on a security filter that takes a tomcat Realm definition exactly as in server.xml. However, I'm facing the problem that the Realm RealmBase classes (which most realms subclass

RE: security filter Realm class file location

2002-08-02 Thread Tathagat (London)
Put the new REALM you make in server/lib (if jar) or in server/classes. -Original Message- From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 14:40 To: [EMAIL PROTECTED] Subject: security filter Realm class file location Subject: security filter

Filter order of operation

2002-07-23 Thread Jacob Hookom
I know that a single request can come through multiple Filters in a chain, I'm wondering if there's any reliable way to ensure precedence in the chain of operation? Jacob Hookom Comprehensive Computer Science University of Wisconsin, Eau Claire --- Outgoing mail is certified Virus Free.

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

<    1   2   3   4   5   6   7   >