struts验证框架问题
下面一段代码中的add方法中的两个参数分别有什么用,在那可用到?比较菜的问题--请指点谢谢
public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
ActionErrors actionerror=new ActionErrors();
if(!username.equals("henry")||!password.equals("henry")){
actionerror.add("message",(new ActionMessage("error")));
}
return ae;
}