2009-05-15

Struts - multiple message-resources

source from: http://viralpatel.net/blogs/2008/11/multiple-message-resource-property-file-in-struts.html

Multiple message resource property file in Struts



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.


key="somekey.in.myresource" />
key="somekey.in.myotherresource"/>

No comments:

Google Referrals