title: Want to call Javabean method in HTML onclick (jsp)
body: <p>For a school assignment I have to make a connection to a database from a JSP page using a Java bean, which works so far. 
  Everytime I press this button I want to call a method in my bean..</p>
  
  <pre><code>&lt;INPUT TYPE=SUBMIT VALUE="To DB!"  OnClick="&lt;% DBbean.InsertStatement(); %&gt;" style="width:100%; height:50px "&gt;
  </code></pre>
  
  <p>Only this doesn't work.. does anyone have an idea how i can solve this? 
  Thanks in advance.</p>