I need to populate a JavaScript variable with a property value (that defined in a property file) when page get loaded . i am using spring mvc 3. is there any best way to do it? appreciate if someone give me some clue.
Thanks in advance.
I need to populate a JavaScript variable with a property value (that defined in a property file) when page get loaded . i am using spring mvc 3. is there any best way to do it? appreciate if someone give me some clue.
Thanks in advance.
The 1st step may look like (in the .js file):
The 2nd step may look like (in your jsp page):
And finally
init(a);