3 fiels form based login authentication in Tomcat
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, June 15, 2008 03:32 AM

Login Page Hi I want Tomcat authentication like company id / username / Password so it looks i should go for Form based authentication .... 1) I wrote login.jsp and error.jsp ; 2)web.xml FORM MyFirst Protected Area /login.jsp <;/form-login-page> /error.jsp <;/form-error-page> 3 )configured Realm in server.xml of tomcat className="org.apache.catalina.realm.DataSourceRealm"; Now issue is tomcat handles this j_security_check action and i want the j_companyid field in my ap   More>>
Login Page

Hi



I want Tomcat authentication like company id / username / Password so it looks i should go for Form based authentication ....



1) I wrote login.jsp and error.jsp ;


2)web.xml





FORM


MyFirst Protected Area





/login.jsp <;/form-login-page>


/error.jsp <;/form-error-page>









3 )configured Realm in server.xml of tomcat className="org.apache.catalina.realm.DataSourceRealm";


Now issue is tomcat handles this j_security_check action and i want the j_companyid field in my application ... so how can i get it ....



Can we write an class that will process this authentication and pass insted of let tomcat handel it ?


OR


any configuration that can handel this j_companyid and pass on to application....?



Should we need to write our own Realm if so ....then how to ?


Thanks

Chetan



Login.jsp


*********************************************














Login to MyFirst





If you have been issued a username and password, key them in here now!





CompanyID :



Username :



Password :











****************************************************    <<Less
About | Sitemap | Contact