How can I block access to the site if a user is not logged in? Under web.xml > Security I checked Form authentication then I selected Login and Error page, but I don\'t know how to block the access a
I\'m looking to create a filter that can give me two things: number of request pr minute, and average responsetime pr minute. I already got the individual readings, I\'m just not sure how to add them
How to specify more than one named Se开发者_StackOverflow中文版rvlet to be wrapped by a filter?You can map a filter to one or more servlets (and you can map more than one filter to a servlet).
I am using a class which implements Filter for my jsp stuff. It looks like this: public class MyFilter implements Filter
How can I block a ip address with some config开发者_StackOverflowuration on web.xml? Do I need a filter? How can I implement one?You can\'t do this purely through config in web.xml, no. A servlet fil
I\'m integrating with an existing servlet that pulls some properties out of the HTTP header.Basically, I\'m implementing an interface that doesn\'t have access to the actual request, it just has acces
How can I use a servlet filter to change an incomin开发者_如何转开发g servlet request url from
I have a filter which processes generated HTML and rewrites certain elements. For example, it adds class attributes to some anchors. Finally, it writes the processed HTML to the response (a subclass o
I\'m using Spring Security 3 and I want to perform some logic (saving some data in the session) when the user is visiting the site and he\'s remembered. I extended the GenericFilterBean class, perform
We have a situation where we want to use filter for URL\'s containing some specific request par开发者_运维百科ameters, e.g: