Top "Servlet-filters" questions

In the Servlet API, you normally use a Servlet when you want to control, preprocess and/or postprocess specific requests.

Handling 'session expired' in JSF web application, running in JBoss AS 5

This question is related to my other question "How to redirect to Login page when Session is expired in Java …

java session jsf servlet-filters viewexpiredexception
How to log request body in JAX-RS client

I need to see my request body with a client JAX-RS request in order to verify that the serialization works …

logging jax-rs servlet-filters
How to add filters to servlet without modifying web.xml

I'd like the ability to modify/configure filters in a different way than web.xml. Here is a static configuration …

java servlets servlet-filters web.xml
How to add servlet Filter with embedded jetty

I am embedding jetty into my app, and trying to work out how to add servlet filters (for cookie handling). …

java jetty servlet-filters embedded-jetty
Stop further processing when redirecting in a filter

I have URLRewirteFilter which checks if requested domain starts with www. and redirects to no-www url. How can I stop …

java servlet-filters
Servlet vs Filter

What is the difference between a Servlet and Filter? What do you recommend to use for authorization to pages?

java servlets servlet-filters
Servlet filters' order of execution

I stumbled upon a bug in my web application that had me scratching my head (and eventually pulling my hair) …

tomcat servlets tomcat7 servlet-filters
how to exclude a url in filtermapping

web.xml <filter> <filter-name>SessionCheckFilter</filter-name> <filter-class>filter.SessionCheckFilter</filter-class> &…

java servlet-filters web.xml url-pattern
Setting Authentication Header in Servlet via Filter

Preface This is my first attempt at a Filter, be gentle. Project Description I am trying to finalize a build …

java servlets servlet-filters