This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler 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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 15385
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
It's not a secret anymore!