File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 35
    
    1
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: 17260
    
    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: 35
    
    1
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: 17260
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we have multiple login forms in spring security?