Recap (1). To have a message displayed in the browser, you first use the ActionMessage(s) classes for storing message data. You typically do this in the Action class. In the jsp-page you use the tag to display one or more of the messages.s you can see there are some differences when you compare this to Listing 1: 1  You don't give the message text directly to ActionMessage. 2  Instead you give a key to the Struts message resource file (also called the application property file).