Results 1 to 3 of 3

Thread: url re-direct to login page issue in spring 2.0.5

  1. #1
    Join Date
    Mar 2008
    Posts
    3

    Default url re-direct to login page issue in spring 2.0.5

    when I "copy & paste" a valid url on the url bar, my application DOES NOT take me to login page. Please let me know what is wrong with my config file. Thanks

    my applicationContext-security.xml looks like this:

    <s:http auto-config="true" access-denied-page="/accessDenied.jsp">
    <s:intercept-url pattern="/app/clients/**" filters="none" />
    <s:form-login login-page="/login.jsp" authentication-failure-url="/login.jsp?login_error=1" default-target-url="/index.jsp"/>
    <s:logout logout-success-url="/thankyou.jsp"/>
    <s:concurrent-session-control max-sessions="1" exception-if-maximum-exceeded="true"/>
    </s:http>

  2. #2
    Join Date
    Mar 2010
    Location
    Boston, MA
    Posts
    316

    Default

    If i am reading your config right, it doesnt look like any resource in your application is protected for access..you dont have any access rules defined..you have

    Code:
    <s:intercept-url pattern="/app/clients/**" filters="none" />
    Which means spring security will stay away from any /app/clients/* requests. Am i missing something?

  3. #3
    Join Date
    Mar 2008
    Posts
    3

    Default

    Thanks for the tip, I got it. It is working now

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •