Announcement Announcement Module
Collapse
No announcement yet.
Spring Securit 2 + Struts 2 integration Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Securit 2 + Struts 2 integration

    Hi,

    I'm creating one simple java app. that uses Struts 2 + Spring + Hibernate. Now, I want to integrate users, their roles and allowed actions for these roles. Is there any simple tutorial that describes this integration between Spring Security 2 and Struts 2 ? It seems to me that Acegi Security 1.0 is a little bit complicated.

    Thx.
    Last edited by mikelis; Mar 4th, 2008, 09:05 AM. Reason: Error in title

  • #2
    SS2 + Struts2 config only

    <http auto-config="true" realm="ntnoa realm" access-denied-page="/error.htm">
    <intercept-url pattern="/" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
    <intercept-url pattern="/css/*" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
    <intercept-url pattern="/images/*" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
    <intercept-url pattern="/*.js" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
    <intercept-url pattern="/login.jsp*" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
    <intercept-url pattern="/**" access="ROLE_USER"/>

    <form-login login-page="/login.jsp" authentication-failure-url="/login.jsp" default-target-url="/login.action"/>
    <logout logout-success-url="/login.jsp"/>

    </http>

    it is only change to Struts2

    Comment

    Working...
    X