OK, I've initialized login and pass to a non-null value and it seems to work but I'm working to get a working login screen.
I wanted to do it this way. Pls tell me if it's doable.
In the JSP, before the login form, I would have :
<% if (abean.getAuthenticate()) {
// it's valid so redirect to some other page
} else {
out.println("Error.. Please reenter form data");
}
%>
The problem is -- say I initialize login and password to "" in the LoginHandler constructor, then the first time the user enters the page it will automatically redirect to some page. So I don't want the code to execute the first time, but all subsequent times but I don't see how this can be done. I would like this functionality with the least number of JSPs possible.
Any suggestions?
Thanks,
Mohap.