MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
gator
Post subject: From Spring Security Log-in to MVC  PostPosted: Aug 10, 2009 - 04:38 PM



Joined: Aug 03, 2009
Posts: 11

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.

Code:

<!-- 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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: From Spring Security Log-in to MVC  PostPosted: Aug 11, 2009 - 09:57 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

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.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
support-nipun
Post subject: RE: From Spring Security Log-in to MVC  PostPosted: Aug 11, 2009 - 09:58 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

Moving to Off Topic >> Software Development.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits