title: How to call servlet from click event of button
body: <p>Hello guys can we call servlet from a button without the action attribute of the tag??</p>
  
  <p>Like </p>
  
  <pre><code> &lt;button onclick="/SaveHighlights?p=" + &lt;%=line%&gt;+ "&amp;q="+'&lt;%=filename%&gt;'&gt;Save&lt;/button&gt;
  </code></pre>