if (errors.hasErrors()) {
for (Iterator iterator = errors.getAllErrorsMessageParameters()
.iterator(); iterator.hasNext();) {
MessageParameters messageParameters = (MessageParameters) iterator
.next();
actionMessages.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage(messageParameters.getErrorCode(),
messageParameters.getErrorArguments()));
}
saveErrors(request, actionMessages);