• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

internationalization for images

 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how is internationalization for images can be achieved.I am using struts 1.1 and WAS 5.1
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possible solution would be to create a key/value pairs in your ApplicationResources files that reference the source of images. For example:

delete.button.image=images/en_us/deleteButton.gif

You could then use the a combination of the <img> tag and the bean:messaage tag to reference the image. For example:

<img src="<bean:message key='delete.button.image' />" />
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic