spring - Where should I put the login logic? DispatcherServlet or a Filter? -


the following 2 things both implement front controller pattern:

  1. dispatcherservlet defined spring
  2. filter defined servlet spec

i think login logic should placed in front controller. 1 should use in spring mvc web application?

instead of implementing own, recommend use spring-security.

btw: way spring-security hooks http-request handling process (the "entry"-point), based on servlet filter (org.springframework.web.filter.delegatingfilterproxy).


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -