This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Spring and the fly likes Can we have multiple login forms in spring security? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Can we have multiple login forms in spring security?" Watch "Can we have multiple login forms in spring security?" New topic
Author

Can we have multiple login forms in spring security?

Kiran Gaddam
Ranch Hand

Joined: Aug 05, 2011
Posts: 32
Hello All...

I tried using 2 login forms in spring security. Every thing is fine..
but for mobile login.. when user is providing wrong user_id or password it is redirecting to desktop authentication-failure-url only...

any idea where I am wrong..
or
does spring security supports multiple login-forms..? pelase help.. here is the security file

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Try using the error-page attribute of the login-form tag.

Tell us what happens with that.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Kiran Gaddam
Ranch Hand

Joined: Aug 05, 2011
Posts: 32
Thanks for the replay mark,

Bt there is no attribute like error-page, when I click ctrl_space in security:form-login...

What am I missing
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Kiran Gaddam wrote:Thanks for the replay mark,

Bt there is no attribute like error-page, when I click ctrl_space in security:form-login...

What am I missing


Maybe that was a tag in a previous version of Spring Security that I remember, it is authentication-failure-url, which is what you are using and that is failing. So I don't know. Good Luck.

Mark
 
Don't get me started about those stupid light bulbs.
 
subject: Can we have multiple login forms in spring security?
 
Similar Threads
Problem with <security:intercept-url pattern=...>
Session getting created twice and session not getting decremented.
Spring Security 2.0.4 .... Redirect user to original page after authentication success or failure
Does Spring Web Flow 2 have role based authorization to execute flow feature?
No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional