したがって、検証エラーから箇条書きを削除する方法はありますか。
public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
String method = request.getParameter("method");
ActionErrors errors = new ActionErrors();
if (method != null) {
if (method.equals("changepwd")) {
if (this.password == null || this.password.length() < 1) {
errors.add("password", new ![enter image description here][1]ActionMessage("errors.required","Password"));
//TODO: add 'error.name.required' key to your resources
}
if (this.cnfpassword == null || this.cnfpassword.length() < 1) {
errors.add("cnfpassword", new ActionMessage("errors.required","Confirm Password"));
//TODO: add 'error.name.required' key to your resources
}
}
}
return errors;
}