aspose file tools*
The moose likes Struts and the fly likes Internationalization in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Internationalization in javascript" Watch "Internationalization in javascript" New topic
Author

Internationalization in javascript

rajani arjun
Greenhorn

Joined: Nov 08, 2006
Posts: 8
Hi,

i want to implement internationalization for javascript alert messages.

Thanks

Rajani
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Here's how I'd do it:



Merrill
Consultant, Sima Solutions
rajani arjun
Greenhorn

Joined: Nov 08, 2006
Posts: 8
thank you i got it
Latha Sree
Greenhorn

Joined: Apr 07, 2009
Posts: 17
Hi,

i am also facing same problem.

I placed alert('<bean:message key="my.message.key" />'); in java script but,
how should i match <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> in javascript as i did in jsp

I am facing script error

Please reply

Thanks
Madhavi
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Custom tags and taglib directives will only work in files processed as JSP. If it's in a JavaScript file they won't work unless you're running your JavaScript files through the JSP compiler.
 
Consider Paul's rocket mass heater.
 
subject: Internationalization in javascript