Anne, you need to override the validate method
provided in ActionForm. It would look something like
this:
In your form bean...
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionError;
|
|
|
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request)
{
ActionErrors errors = new ActionErrors();
if ((user == null) || (user.length() < 1))
{
errors.add("username",
new ActionError ("error.username.required"));
errors.add("header",
new ActionError ("errors.header"));
}
return errors;
}
regards,
sanjay
__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers