Hello,
i want to display error when user type invalid user name and password,i want to display that user name is invalid. i want to write the ActionError in Action class.
i write the below coding. it doesnt work.pls help me
rs=stmt.executeQuery("select * from login where name=\""+name1+"\" and pwd=\""+password1+"\"");
if(rs.next())
{
target="success";
HttpSession sess=request.getSession();
}
else{
target="login";
ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("errors.login.required"));
saveErrors(request, errors);
}
i Included that in Propert file also .
please help me to find the solution.
Thanks in Advance
Swathi