P
PC Leung
My form extends ValidatorForm.
I add additional checking inside this form,
in addition to validator.xml and validator-rules.xml.
It works.
Now, in Action, I check the existence of record in database.
If exists, I want to display error message from ApplicationResources.properties
How can I do it? Thanks.
if (sPassword == null) {
return mapping.findForward("success");
} else {
// already exists
// display error message back to addUser.jsp
}
return mapping.findForward("addUser");
I add additional checking inside this form,
in addition to validator.xml and validator-rules.xml.
It works.
Now, in Action, I check the existence of record in database.
If exists, I want to display error message from ApplicationResources.properties
How can I do it? Thanks.
if (sPassword == null) {
return mapping.findForward("success");
} else {
// already exists
// display error message back to addUser.jsp
}
return mapping.findForward("addUser");