This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes i18n tag is not working properly in ajax call Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "i18n tag is not working properly in ajax call" Watch "i18n tag is not working properly in ajax call" New topic
Author

i18n tag is not working properly in ajax call

Hasinur Rahaman
Greenhorn

Joined: Mar 20, 2012
Posts: 3
Hi
I am using <i18n> tag. I am showing the pages in three different languages {depending on the user choice, user may click on the button of any of the specific language} say, English, Tamil, and Sinhala.
The translation is working very fine
In some of the pages I have used ajax call to append another jsp inside the mother jsp and have used <s:div> tag and jsp: nclude tag.
The pages are working fine . the only problem is that the included page{the child jsp} is not translating to any locale language.
A birdeye view of the code:-
***** the jquery****************
urlStr=”specified path of the url”
$jq14_enquiry.ajax({
url: urlStr,
async: false,
cache : false,
success : function(responseText) {
$jq14_enquiry("#eDetailDiv").html(responseText);
}

});
****************************jsp***************

I have used <s:div id="enquiryDetailDiv"><jsp:include page="rEDetail.jsp"></jsp:include></s:div>
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Are you using struts 2?


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Hasinur Rahaman
Greenhorn

Joined: Mar 20, 2012
Posts: 3
yes
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

use this
Hasinur Rahaman
Greenhorn

Joined: Mar 20, 2012
Posts: 3
didn't work
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Through it's not a good idea but try whether it's working or not. Read the properties in your action class and display in jsp.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: i18n tag is not working properly in ajax call
 
Similar Threads
Help with tabbed Panel
how to receive data in .jsp file from servlet in AJAX?
How to use struts2 submit tag as button without submitting the form ?
Calling XHTML page in jsp.
JChart not being displayed on JSP