title: Using JSP with Buttons
body: <p>I have a button in a JSP page:  </p>
  
  <pre><code>&lt;button type="button" onclick=""&gt;Click me &lt;/button&gt;  
  </code></pre>
  
  <p>I want to perform the following jsp code:  </p>
  
  <pre><code>&lt;% session.setAtrribute("status","guest"); %&gt;  
  </code></pre>
  
  <p>when I press the button.  </p>
  
  <p>Is it possible to use JSP code on a button click and if yes how?</p>