title: How to access JSP Map in vanilla Javascript or JQuery
body: <p>First of all, I am not sure if this is even possible due to one being server side and other being client side. </p>
  
  <p>Application that I am working on uses Spring MVC 3.1 and there is a <code>Map</code> (lets say <code>validValuesMap</code> ) of type <code>Map&lt;String,Long&gt;</code> defined in Spring method - <code>referenceData</code>. </p>
  
  <p>Due to <code>Map</code> being defined in <code>referenceData</code> method, this <code>Map</code> is available in JSP page and I can use JSTL on this <code>Map</code> like - <code>&lt;core:if test="${(validValuesMap ne null)}"&gt;</code> etc. </p>
  
  <p>Can I use this <code>Map</code> in plain JavaScript or jQuery too? </p>
  
  <p>I have to basically perform a simple check on <code>Long</code> value of this Map if that is being <strong>greater than zero</strong> for a key and that key is available in the JavaScript function as a <code>var</code>. </p>
  
  <p>I have to put that check into an <code>else if (....)</code> of JavaScript. </p>
  
  <p>Is that possible? or any other way to perform that validation on client side for a button click event?</p>