Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AJAX-I18N-Struts Query  RSS feed

 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need to fetch table data using ajax.

But the component labels, col. labels in the table header and rows need to be displayed as per the user's locale/preferred non-english language (i18n).

currently the struts bean:message tags serve the purpose

Once ajax is employed i will be getting data in string format, but I am not sure how to handle the i18n part of the component labels.

..any way to do this..
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set the proper character encoding headers with the server response.

You need to do the i18n on the server.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!