facebook

From Spring Security Log-in to MVC

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #301266 Reply

    gator
    Member

    Hi,

    I’m using Spring Security for security, and I’m having a hard to getting back into the /WEB-INF/jsp/ folder. After I log in, I’d like to be directed to the WEB-INF/jsp folder, so that I can continue to use MVC, but when I use default-target-url=”/WEB-INF/jsp/home.jsp” it gives me the 404 error; however, if I use default-target-url=”/home.jsp” it will work if I have a home.jsp outside the WEB-INF folder.

    
    <!-- Login Requirements -->
    <sec:form-login login-page="/login.jsp"
                          default-target-url="/WEB-INF/jsp/home.jsp"
        always-use-default-target="true" 
                         authentication-failure-url="/login.jsp?login_error=1" />
    

    So I first get directed to the /login.jsp “which works just fine”, then I’d like to get directed into /WEB-INF/jsp/home.jsp where Spring controller has controll over home.jsp.

    #301332 Reply

    Loyal Water
    Member

    gator,
    I would suggest you cross post this query on the pring forums. I don’t know enough about the ins and outs of Spring MVC to help you here. Sorry about that.

    #301333 Reply

    Loyal Water
    Member

    Moving to Off Topic >> Software Development.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: From Spring Security Log-in to MVC

You must be logged in to post in the forum log in