Javascript and ResourceBundle
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Candace_Padayachee
Posted On:   Thursday, October 19, 2006 03:44 AM

Is it possible to use ResourceBundle in Javascript? In my javascript file I need to read from a .properties file.

Re: Javascript and ResourceBundle

Posted By:   Firat_Tiryaki  
Posted On:   Friday, October 20, 2006 03:08 AM

The below code works if you use it in jsp file. It is not possible to use the code in a js file, because the js file will not be interpreted as JSP.



<%@ page import="java.util.*"%>

<%! ResourceBundle propertyResource = PropertyResourceBundle.getBundle("yourResourcesFileWithPackage"); %>


About | Sitemap | Contact