"cool_bhanu" wrote : | <form-login-config> | <form-login-page>/display.jsp</form-login-page> | <form-error-page>/error.jsp</form-error-page> | </form-login-config> | </login-config> | | is forcing it to go to the pages which i give in form-login-page | instead it should go | to NameAction which extends Action and based on the logic there | i should go to the required success or error page |
You will have to integrate the logic in your NameAction object (which decides whether login is success or failure) into the JAAS LoginModule that is actually processing the Login Usecase now. If you are using one of the standard JAAS Login modules, you will have to use a custom JAAS Login Module to incorporate this logic instead. As far as redirecting to pages of your choosing instead of the pages specified in your form-config goes, you will have to integrate a custom FormAuthenticator that extends the org.apache.catalina.authenticator.FormAuthenticator. "cool_bhanu" wrote : | and iam not understanding the importance if <form-login-config> | like if i remove the lines | <form-login-config> | <form-login-page>/display.jsp</form-login-page> | <form-error-page>/error.jsp</form-error-page> | </form-login-config> | </login-config> | I believe this information is required by the org.apache.catalina.authenticator.FormAuthenticator and should *not* be left out View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954358#3954358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954358 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user