aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Getting error messages from javascript resource bundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Getting error messages from javascript resource bundle" Watch "Getting error messages from javascript resource bundle" New topic
Author

Getting error messages from javascript resource bundle

gobburi saikrishna
Ranch Hand

Joined: Jan 21, 2008
Posts: 52
I need to implement the concept of I18n using javascript.
I can use resource bundle for different languages, but how to access that using javascript in the client side ?

please anyone post the solution


Thanks
Saikrishna
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60080
    
  65

JavaScript has no such facility. This is something that you will have to handle on the server.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
gobburi saikrishna
Ranch Hand

Joined: Jan 21, 2008
Posts: 52
Is there any integration with java and javascript, where 18n messages should come from Client side, because the page which is getting validated is Ajax based web page, and every time an ajax is being called.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60080
    
  65

Why aren't you using the I18N capabilities of JSP?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting error messages from javascript resource bundle
 
Similar Threads
Is it possible to display javascript alerts with s:text tag by picking values from a resource bundle
Can I use Native language resource bundle directly in Struts
setting classpath
how can i get the path from which resource bundle gets its bundle file
Implementing resource bundle in javascript