Top "Servlet-filters" questions

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

Differences between ServletResponse and HttpServletResponseWrapper?

I am new to servlet and reading some text about filters and wrappers. I can understand filters but got confused …

java servlets wrapper servlet-filters
Spring security custom filter called multiple times

I have a custom logout filter called six times. Twice as soon I try to access the application, twice when …

spring spring-security servlet-filters
What is a Jersey Filter?

I want to know basically what a Jersey filter is and how is it related to a servlet filter? Are …

java web-services jersey servlet-filters
How to get Roles from UserPrincipal in Java?

I created a class(Named as CustomRequestWrapper) which is implementing HttpServletRequestWrapper .In CustomRequestWrapper class i am setting user principal.Now …

java servlets servlet-filters userprincipal
JSF Cache Static Resources Filter

How do I write a filter which will appropriately cache static resources as recommended by Google (https://developers.google.com/…

jsf servlet-filters browser-cache
Servlet Filter for all requests

I am wondering, how can I set in the web.xml a Filter that is called on every request?

java servlets servlet-filters
Access session scoped JSF managed bean in web filter

I have SessionScoped bean called userSession to keep track of the user ( username, ifLogged, etc). I want to filter some …

jsf servlet-filters managed-bean session-scope
How to add custom response and abort request in jersey 1.11 filters

I am trying to implement user authentication for rest calls in jersey 1.11 filters. This is what i have tried package …

java jersey servlet-filters
Difference between servlet/servlet-mapping and filter/filter-mapping?

As part of exploring/learning Struts2, JSP and Servlets, I see from here and there that servlets and servlets-mapping can …

java servlets struts2 mapping servlet-filters
doFilter called twice, intended behaviour?

I'm working through the Java EE servlet tutorial and tried the mood example. I noticed the doFilter is getting called …

java jakarta-ee servlets glassfish servlet-filters