This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Struts and the fly likes internationalization for images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "internationalization for images" Watch "internationalization for images" New topic
Author

internationalization for images

Gavi Raaghav
Ranch Hand

Joined: Apr 28, 2005
Posts: 82
how is internationalization for images can be achieved.I am using struts 1.1 and WAS 5.1
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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' />" />


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: internationalization for images
 
Similar Threads
Internationalization
Internationalization in Log4j
How to use Internationalisation in Jspper report
Reader/Writer problems
whose internationalization features is good to use JSTL or jakarta tags?