Multiple message resource property file in Struts

Recently I came up with a requirement where in we have to display messages from multiple bundle resource (message resource) property files in Struts using .
Following are the steps for the same:

  1. Make an entry of message resource file name in struts-config.xml file.
  2. Once this is done, the message resource file can be accessed by using the key (in this case we have myResource & myOtherResource). The key should be used in tag in jsp to display perticular message from the resource property file. bundle=”” attribute of is used to identify the perticular property file.


  • Deepak 23 February, 2012, 16:31

    what is switch action in Struts.can you explain with an example.Can you explain ForwardAction,IncludeAction,DispatchAction,LookupDispatchAction,SwitchAction with a detailed example.

  • Vikas Kunar Singh 24 September, 2012, 11:28

    what is use use of redirect attribute and how do we can achieve sendRediect in struts?
    please send me the code.

    Thanks in advance.

  • Suraj 28 December, 2012, 16:56
    <message-resources parameter="" />

Leave a Reply

Your email address will not be published. Required fields are marked *


To post source code in comment, use [code language] [/code] tag, for example:

  • [code java] Java source code here [/code]
  • [code html] HTML here [/code]