This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "AJAX-I18N-Struts Query" Watch "AJAX-I18N-Struts Query" New topic
Author

AJAX-I18N-Struts Query

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
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..


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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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.
 
subject: AJAX-I18N-Struts Query
 
Similar Threads
how to translate form data using i18n
AJAX based data grid component with pagination with Struts2
How does everyone else handle table entries and null values?
Inserting space
help on struts I18N