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

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -