addActionMessages(ActionMessages.GLOBAL_MESSAGE, request, messages);
}
protected void addActionMessages(final String propertyName, final HttpServletRequest request,
final Collection<LabelFormatter> messages) {
final StrutsMessageResourceProvider messageResourceProvider = getMessageResourceProvider(request);
for (final LabelFormatter each : messages) {
addActionMessageLiteral(propertyName, request, each.toString(messageResourceProvider));
}
}