Multiple message resource property file in Struts
- By Viral Patel on November 25, 2008
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:
- Make an entry of message resource file name in struts-config.xml file.
- 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.
Get our Articles via Email. Enter your email address.