Hi Matt, This get me crazy...
In my webapplication there are 4 login pages. But only one of them make use of Spring Securiy (j_security) as shown below tag in security.xml (other make use of actions to login, I know it is 100% ugly solution because it now gives me problem like "route to the protected URL originally tried to access after logged in) when implementing the login using actions insted of spring security) : <form-login login-page="/frontpage.html" authentication-failure-url="/frontpage.html?error=true" login-processing-url="/j_security_check"/> The difference between those 4 pages are the urls for "login-page" , "authentication-failure-url".. Due to that you only are allowed to define one <form-login ...> tag in the security.xml the options was: 1. Keep the one login page using spring security and other login pages implementing customer action to handle login. which is very ugly and it is not possible to route to the protected URL originally tried to access after logged in using action method. 2. Deactivate the default <form-login..> and instead add 4 x custom instances of AuthenticationProcessingFilter for each login page - Is that correct ? This sound very complex and I didn't find any tutorials about adding multiple login pages. One I found is this (read the below thread): http://forum.springsource.org/showthread.php?t=57151 The above thread sound very complex when trying to implement. Do you know a better tutorial to support multiple login pages with different urls for login-page and url for authentication-failier-url ? maye someone made already for appfuse ? I hope you can help with some code examples for Appfuse Struts 2 moduler version I have. I spent too much time on this.. -taltun mraible wrote: > > The functionality you're looking for should be supported by Spring > Security. Have you tried to do this? If so, what errors are you > seeing? > > The main thing you'll need to do is modify security.xml so the URL > you're looking for is protected. > > Matt > > On Mon, Oct 12, 2009 at 2:46 AM, taltun <tunca...@gmail.com> wrote: >> >> Hi, >> >> I make use of Appfuse Struts 2 modular. >> >> I hope some can help on my issue: >> >> Normally, when you call an action mapping e.g. >> http://localhost/myaction.html >> >> if calling action mapping "myaction" require the user to be logged in >> than >> the user is redirected/shown the login page first. When the user enter >> the >> username and password than the previous myaction with the request data is >> redirected to after the login has completed. >> >> I just made a custom login functionallity using actions not. How do I >> programmaticly do the above scenario ? if I still want to redirect with >> request data to the initial action after the login action has been >> completed >> ? >> >> >> -taltun >> -- >> View this message in context: >> http://www.nabble.com/Request-Data-tp25852328s2369p25852328.html >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net >> For additional commands, e-mail: users-h...@appfuse.dev.java.net >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > -- View this message in context: http://www.nabble.com/Request-Data-tp25852328s2369p25864411.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net