The login page mentioned in your post is for form based authintication.It's not realted to JAAS.The container provides this feature and you can use any of the releams that comes with the container for authentication.
Originally posted by Suresh B: I am completely confused...I hope that you dont mind by these simple questions.
If my posts are making you confused , then I am sorry.
Originally posted by Suresh B:
Let me tell my requirement, i need to develop a customized login module for all web applications and it should be independent of servers.
Relam is something specific to Tomcat ,so its not portable across different servers. As per you requirement you need to develop a customized login module and which can be used across web applications. Now if your web applications are using JAAS then your login modules would be plugged to any of your webapplications and will not depend on server.(just check with your server docs as how to pass login.config parameter to the jvm , that's required for JAAS)
In case you do not want JAAS , then you can develope a simple authintication framework (interface based) ; something similar to Authintication framework of JAAS for this and use this acrosse your web applications.