public class MessageAction extends AbstractAction {
public DispatchConfig execute(HttpServletRequest request, HttpServletResponse response) {
String bundle = "de.odysseus.calyxo.demo.control.messages";
Message info = new Message(bundle, "test", new Message.ValueArg("information"));
getMessageSupport().addInfo(request, info);
Message warning = new Message(bundle, "test", new Message.ValueArg("warning"));
getMessageSupport().addWarning(request, warning);
Message error = new Message(bundle, "test", new Message.ValueArg("error"));
getMessageSupport().addError(request, error);
return getActionConfig().findDispatchConfig(null);
}