This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes AJAX-I18N-Struts Query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX-I18N-Struts Query" Watch "AJAX-I18N-Struts Query" New topic

AJAX-I18N-Struts Query

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277

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..

SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Set the proper character encoding headers with the server response.

You need to do the i18n on the server.

I agree. Here's the link:
subject: AJAX-I18N-Struts Query
Similar Threads
help on struts I18N
Inserting space
AJAX based data grid component with pagination with Struts2
How does everyone else handle table entries and null values?
how to translate form data using i18n