how to share constants between Java and Javascript
<p>I have in my java classes static variables CONSTANT_1, CONSTANT_2...<br>
What is the best way to share these constants with my javascript functions or if there is a JQuery plugin for this.  </p>

<p>Till now the only solution I can think of, is an ajax call in the beginning, to send these static variables to the client.</p>

<p>Thanks</p>
