Hi all,

I'm new here and this is my first post.
I'm trying to insert an ActionMessage in the request inside an Action class.
I'm using the following code:

ActionMessages messages = new ActionMessages();
ActionMessage newmessage = new ActionMessage("messages.general", "XXX");
messages.add(ActionMessages.GLOBAL_MESSAGE, newmessage);
saveMessages(request, messages);

Now, how can I print it in the JSP (in the same way as I can print the
ActionErrors)? I guess that that should be made by using the following code:

<html:messages id="message">
        <bean:write name="message" />
</html:messages>

But this doesn't work... :( This piece of code should work to print out all
the ActionMessages saved (in case of having more than one), right?

Any clues?

Thanks,

Antonio Santos


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to