


I am very confused about how I should setup my <intercept-url> elements. 
What would be the difference between using
Code:
<intercept-url pattern="/index.jsp" access="IS_AUTHENTICATED_ANONYMOUSLY"
vs using
Code:
<intercept-url pattern="/index.jsp" access="ROLE_ANONYMOUS"
?
--------------------------------------------------------------
and what if instead of
Code:
IS_AUTHENTICATED_ANONYMOUSLY
i were to use
Code:
"ROLE_ANONYMOUS, ROLE_USER"
^^ Which one is preferred to use?
-------------------------------------------------------
Also why do I need to explicitly set / and /index.jsp url patterns instead of just /index.jsp? And do I need to explicitly set access on /logoff.jsp to be only or both and
Code:
IS_AUTHENTICATED_ANONYMOUSLY
?
------------------------------------------------------------------
And one more question : is there any reason why
Code:
access="IS_AUTHENTICATED_REMEMBERED"
should ever be set on my patterns if using an ? Or does spring automatically enable that for all url patterns that restrict access to ?