|
A robust starter web application to ease Java webapp development. Home | Tutorials | Demos | Issues |
|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
LoginHi,
I'm using Struts 2 Moduler. I hope some can help on my big issue. I have 2 pages xxx.html and yyy.html. Each have a login form posting to j_security_check. I want each have a different "authentication-failure-url" in case if the login is failed. Currently, I have below tag in my security.xml file: <form-login login-page="/xxx.html" authentication-failure-url="/xxx.html?error=true" login-processing-url="/j_security_check"/> This works great! But if I add another e.g. <form-login login-page="/yyy.html" authentication-failure-url="/yyy.html?error=true" login-processing-url="/j_security_check"/> This second tag doesn't work! Whenever a login form is used to be proccessing by j_security_check the first defined <form-login.. tag is used. How can I have 2 <form-login... tags for each page in security.xml or is there other solution ? -tuncay |
|
|
Re: LoginI don't think you Can use the auto config tags to do that. Without
looking at it I think you should research howto define two AuthenticationEntryPoint beans and the wiring that goes with them. On May 28, 2009, at 3:30 PM, taltun <tuncayxx@...> wrote: > > Hi, > > I'm using Struts 2 Moduler. I hope some can help on my big issue. > > I have 2 pages xxx.html and yyy.html. > > Each have a login form posting to j_security_check. > > I want each have a different "authentication-failure-url" in case if > the > login is failed. > > Currently, I have below tag in my security.xml file: > > <form-login login-page="/xxx.html" > authentication-failure-url="/xxx.html?error=true" > login-processing-url="/j_security_check"/> > > This works great! > > But if I add another e.g. > > <form-login login-page="/yyy.-" > authentication-failure-url="/yyy.html?error=true" > login-processing-url="/j_security_check"/> > > This second tag doesn't work! Whenever a login form is used to be > proccessing by j_security_check > the first defined <form-login.. tag is used. > > How can I have 2 <form-login... tags for each page in security.xml > or is > there other solution ? > > -tuncay > -- > View this message in context: http://www.nabble.com/Login-tp23771301s2369p23771301.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: LoginThanks!
Isn't there any code examples ?
|
| Free embeddable forum powered by Nabble | Forum Help |
