File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i18n tag is not working properly in ajax call

 
Hasinur Rahaman
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using struts 2?
 
Hasinur Rahaman
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use this
 
Hasinur Rahaman
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
didn't work
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic