Realm: Tomcat vs SJSAS
Hello,
May I know what is the SJSAS equivalent for the Tomcat's version of the following server.xl configuration:
<Realm
className="org.apache.catalina.realm.JDBCRealm"
debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@{IP address}:{Port}:{Servicename}"
connectionName="{DB Username}"
connectionPassword="{Password}"
userTable="users"
userNameCol="username"
userCredCol="password"
userRoleTable="user_roles"
roleNameCol="rolename"
/>
I am trying to customize my login page using the form-based authentication strategy using SJSAS but I have been stuck for 2 days.
The loginerror page is served to me upon successful login and it does not forward me to the requested page.
Please help.....
# 1
Hi,Actually I do not know the solution, but, I can help you...remove the error page, stack will get displayed, so with that you can identify the actual error and you can solve.Hope so this helps you.Regards,Gangotri
# 2
thanks for your reply.
I do not know if I am using the right strategy. I have abandon the idea of using the server's form based authentication feature. What I have done is that I am using a Filter to intercept all incoming requests to serve a Login page using the RequestDispatcher and make a comparison to the users credentials in the DB.
In the midst of doing that, i encountered problem using sendRedirect. sendRedirect causes the application to run in an unterminated loop. I wonder why. It was solved by using RequestDispatcher. Just curious and wanted to know about sendRedirect.