i try to code a login form which passes username and password to a servlet and let the user login.
Then, in the servlet, i lo
request.login(username, password);
but it throws exception which failed to authenticate the user.
String authType = request.getAuthType();
if(authType != null) {
request.login(username, password);
}
- I wonder how to code a simple login page.
- What is the uses of request.authenticate(response);
I try that and it pop out a screen which cannot be proceed anymore.
- I try to refer this page http://download.oracle.com/javaee/1.4/tutorial/doc/Security5.html which i think need to configure the authentication first before login and add some user.
Please help.
Thanks.