Results 1 to 1 of 1
- 09-29-2011, 01:48 PM #1
Member
- Join Date
- May 2011
- Location
- Herentals, Belgium
- Posts
- 14
- Rep Power
- 0
Filter is blocking acces to servlet
Hi all,
I am using a filter where all request go through for keeping statisticks about how many request euch page has got.
Now I got the following problem:
When I use an annotation @Webfilter("*.htm"), everything works fine and the web-app is keeping track of all request as it should do.
But when I try it without the annotation, and just declare my filter in web.xml,
<filter>
<filter-name>ServletFilter</filter-name>
<filter-class>be.hf.filters.ServletFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ServletFilter</filter-name>
<url-pattern>*.htm</url-pattern>
</filter-mapping>
all of a sudden the server throws a 404 error for each page I try to reach...
Anybody got an idea whats wrong?Enjoy your milk!! :cool:
Similar Threads
-
Discussion About Blocking Closing Get and Post Methods in Servlet Communication
By mr_anderson in forum Advanced JavaReplies: 1Last Post: 08-23-2011, 11:19 AM -
Servlet Filter causes problems, but only for POST requests
By mruss in forum Java ServletReplies: 2Last Post: 10-28-2010, 03:55 PM -
servlet filter
By redforce.bala in forum Java ServletReplies: 3Last Post: 10-07-2010, 09:21 AM -
servlet filter authentication
By pradeepprathyu in forum Advanced JavaReplies: 0Last Post: 11-22-2008, 11:10 AM -
servlet Filter problem
By saint_jorjo in forum New To JavaReplies: 1Last Post: 03-13-2008, 12:05 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks