我想通过设置自定义错误消息@Controller
,也有一些是像Struts saveMessages(...)
的春天?
例如:
ActionErrors actionErrors = new ActionErrors();
actionErrors.add("error", new ActionMessage("error.missing.key",
messageResources.getMessage("label.username"),
messageResources.getMessage("label.password")));
saveErrors(request, actionErrors);