This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The problem is not in your JSP code, but in the code that creates the ActionMessage. An ActionMessage is intended to be populated by a message key that exists in the ApplicationResources.properties file. It is not intended to be populated by a literal string as you are apparently doing. Try adding the following to your ApplicationResources.properties file (or whatever message resource file is defined in your struts-config.xml file)
and changing the code that creates the message so it looks something like this:
After telling you all this, if you really prefer not to have your messages in the ApplicationResources.properties file, you can specify a literal when creating a message like this:
The second parameter tells struts this is a literal message, and not a message key.
See this link for more information on Struts messages. [ February 22, 2007: Message edited by: Merrill Higginson ]