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

How to display JSP in Different Languages?

 
Anand Nuchchi
Greenhorn
Posts: 27
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
In my project am planning to display the JSP in different languages depending upon there "Locale". Am developing the porject using struts frame work. How to include in the property file regarding this information?
Please give some guidelines so that i can procees.

thanks & regards
Anand.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would find out more about using the 'fmt' class of tags of the JSTL.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts has it's own i18n support built in.

For reasons like this, it's better to ask your questions in the Struts forum than in the JSP forum if you are building your app with Struts.

Moving to the Struts forum.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This link gives a pretty good explanation of how Struts handles i18n. The only thing it fails to mention is that in order to test different languages, you have to change the language setting in your browser. In Internet Explorer, this is done by:

1-Select Tools-->Internet Options from the menu
2-Click the "General" tab and then the "Languages" button.
3-Add any number of languages with the "Add" button, but make sure the language you want to test is at the top of the list.

This process is pretty similar for other browsers.
 
Nyanas Kandhan
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For an example on Struts internationalization you can refer here.

Struts I18N using locale.
Struts Internationalization using browser settings.

regards
Struts Developer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic