I'm having trouble with figuring out how to handle messages in
Struts.
For the sake of experimentation, here is what I have in my action method:
and in my
jsp file:
When I execute the action, the only thing that shows up is the text "Messages present".
I know my message resources file is being found because I am using Struts Validation and the validation messages show up under the html:errors when I enter an error in the form. This also tells me that Struts is finding the tag library okay as well. And yes, I have messages.saved, messages.test, and messages.amg all defined in the message resources file.
What is the proper way to handle adding error and informational messages? And what might my problem be?
Note: I am using tiles. Could this be complicating matters?
Thanks,
Scott
Update: I also tried using message literals rather than keys to the message resources bundle. Same result.
i.e.:
[ October 31, 2007: Message edited by: Scott Arnold ]
[ October 31, 2007: Message edited by: Scott Arnold ]
[ October 31, 2007: Message edited by: Scott Arnold ]
[ October 31, 2007: Message edited by: Scott Arnold ]