Using Multiple Message Resource Bundles in Struts

By: Jagan  

We will use a different message resource bundle to store information about images. 

a. Create a new file called under src/java/struts.example directory (You can do this within Eclipse). Move the following entries from to

image.beerchug.alttext=It’s Beer time the Form
image.cancel.alttext=Cancel Submission

b. In the struts-config.xml, declare the new file as a Resource Bundle as
<message-resources parameter="struts.example.ImageResources"
key="bundle.image" null="false"/>

c. For each of the image tag that corresponds to these images, change the tags in JSPs to use the

Most Viewed Articles (in Struts )

Latest Articles (in Struts)

Comment on this tutorial