alexmc
Mar 22nd, 2009, 06:58 PM
Iīm new in spring-security and Iīm creating an application where /* and /login/* requests donīt needs authentication. All /admin requests needs authentication.
My first applicationContext-security.xml like
<security:intercept-url pattern="/login/**" filters="none"/>
<security:intercept-url pattern="/admin/**" access="IS_AUTHENTICATED_REMEMBERED"/>
<security:intercept-url pattern="/**" access="IS_AUTHENTICATED_REMEMBERED"/>
<security:form-login login-page='/login/Index.action'/>
When i request /index.jsp, it works, and redirect to my login page.
But, when I try to request /admin/XXX_init.action, donīt work, and not redirect to login page.
I tried to change /admin/** to /admin/*.action, and donīt work to.
This configuration donīt work with struts2 action? just with *.jsp files?
I searched in internet, but all solutions doesnt work.
How can I do this?
thanks in advance.
My first applicationContext-security.xml like
<security:intercept-url pattern="/login/**" filters="none"/>
<security:intercept-url pattern="/admin/**" access="IS_AUTHENTICATED_REMEMBERED"/>
<security:intercept-url pattern="/**" access="IS_AUTHENTICATED_REMEMBERED"/>
<security:form-login login-page='/login/Index.action'/>
When i request /index.jsp, it works, and redirect to my login page.
But, when I try to request /admin/XXX_init.action, donīt work, and not redirect to login page.
I tried to change /admin/** to /admin/*.action, and donīt work to.
This configuration donīt work with struts2 action? just with *.jsp files?
I searched in internet, but all solutions doesnt work.
How can I do this?
thanks in advance.