Login using realm security
I have recently made a site in which i m using realm security
The site is here : -
But as i have made a login form in the first (index.html) it can correctly take the emailID and the password.... and throw the user to error page (error logging in )
But it cannot login the user....as i have put the code in the index.jsp page....
java.security.Principal obj = request.getUserPrincipal();
String user = obj.getName();
But when i login using the link above the form(Click here to Login ) then it successfully redirects to the loginA.jsp page and i m able to login.
May its due to the config in web.xml: -
i have tried using
but still its not able to login....
but i have to do something with login form in index.jsp such that it can login users....
New Delhi, India