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
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
,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
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
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
()
{
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
)
{
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
: 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
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
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
-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
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
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
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
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
-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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
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
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
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?
[ ... ]
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
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.
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
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
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
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
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
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);
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
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);
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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.
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
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
401 - 500 of 662 matches
Mail list logo