• Post Reply Bookmark Topic Watch Topic
  • New Topic

internationalization in iText  RSS feed

 
Tuong Nguyen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Struts tag & JSTL. How can i use them is iText?
Example: <bean:message key="message.hello"/> print Hello in English or Hallo in German.
Please show me a example. Thanks.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the normal mechanism of using resource bundles. The code would look something like:



Then you can have files MyAppBundle.properties, MyAppBundle_en.properties etc.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!