title: Combining UNDERSCORE.JS and JSP
body: <p>I'm trying to develop a web application that it obtains information from a server (in a mysql database ) and it is shown to the client (via browser) this information.</p>
  
  <p>I want to use backbone.js and the default templates system (underscore.js) in the client part. For other hand, I want to use jsp for accessing to information from the  mysql database in the server.</p>
  
  <p>My problem is that I don't know so fine if it's possible to combine jsp and underscore.js (independently of syntax's problems associated to the fact what &lt;% %> structure is the same to both technologies of). </p>
  
  <p>I have searched about it, but I haven't found any example that use both technologies. </p>
  
  <p>it's possible to combine both? or why not?
  can somebody show me some example?</p>
  
  <p>Thanks in advance!!</p>
  
  <p>MODIFIED AS NEXT:</p>
  
  <p>I'm aware of syntax problem's existence, but I don't understand as to combine both (jsp and undescore.js). If I have the next template (underscore.js) in a html file:</p>
  
  <pre><code>&lt;!-- language: lang-js --&gt;
  &lt;script type="text/template" id="showTemplate"&gt;
      &lt;h2&gt;
        &lt;%= title %&gt;
        &lt;small&gt;by: &lt;%= author %&gt;&lt;/small&gt;
      &lt;/h2&gt;
      &lt;p style="white-space:pre-wrap;"&gt;&lt;%= description %&gt;&lt;/p&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>And I have a backbone's view that replace the 'title', 'author' and 'description' fields of the template with the corresponding values:</p>
  
  <pre><code>&lt;!-- language: lang-js --&gt;
  viewExample = Backbone.View.extend({
  
    // the constructor
    initialize: function (options) {
      this.note  = options.note;
    },
  
    // populate the html to the dom
    render: function () {
      this.$el.html(_.template($('#formTemplate').html(), {title: "Environment",   author:"Albert", description:"textDescription"}));
      return this;
    }
  });
  </code></pre>
  
  <p>How can I do for getting that value of a 'title', 'author' and 'description' fields is obtained from server via jsp?</p>