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
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56152
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56152
    
  13

Why aren't you using the I18N capabilities of 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: Getting error messages from javascript resource bundle
 
Similar Threads
setting classpath
Can I use Native language resource bundle directly in Struts
Is it possible to display javascript alerts with s:text tag by picking values from a resource bundle
how can i get the path from which resource bundle gets its bundle file
Implementing resource bundle in javascript