title: How to proceed JSTL tags via javascript
body: <p>I have to proceed JSTL tags (fmt:) in javascript response-handler function. For example:</p>
  
  <ol>
  <li>I need to switch language via AJAX, so I need update my toolpanel via javascript and in response-handler function (javascript) proceed fmt:setLocale</li>
  <li>I have to update my select dropdown menus via ajax, and they must translate due localization, so I have to use fmt:message in javascript</li>
  </ol>
  
  <p><strong>BUT</strong>, jsp engine doesn't proceed .js files, and my code doesn't work:</p>
  
  <pre><code>document.findElementById("div1").innerHTML = "&lt;fmt:message key="word_from_DB"/&gt;";
  document.findElementById("div2").innerHTML = "&lt;fmt:setLocale value="en"/&gt;";
  </code></pre>
  
  <p><strong>Question</strong>: How can I proceed those tags from javascript or where should I search for alternative?</p>