title: Can a jsp file hold javascript
body: <p>Hello everyone quick question.</p>
  
  <p>First time working with java script
  I have a jsp file that will create a data grid and one of the columns of the data grid are checkboxes. My question is can a JSP file contain javascript in it or will I have to create a different file for just the javascript. The function of the java script will be a select all button.</p>
  
  <p>If JSP can hold javascript where does the code belong? by this I mean what headers does the code reside int?</p>
  
  <pre><code>&lt;html&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>Thanks for the help everyone.</p>