File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

internationalization in iText

 
Tuong Nguyen
Greenhorn
Posts: 9
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic