Could anyone please tell me, how can I handle the j_security_check servlet in Form based authentication in java?
Do I have to map the servlet class with j_security_check name in web-xml file like:
<servlet>
<servlet-name>Anyname</servlet-name>
<servlet-class>Anyclass</servlet-name>
</servlet>
<servlet-mapping>
<servlet-name>Anyname</servlet-name>
<url-pattern>/j_security_check</url-pattern>
</servlet-mapping>
If I enter the user name and pasword, and click on submit, then how will servlet with j_security_check name going to handle those info? How will that servlet going to verify those entered user name, and password, and get the resource, if authentication, and then authorization succeed, otherwise error page. How will j_security_check servlet will do that?