title: replace multiple inline button onclick event handlers with content security policy compliant code
body: <p>I am new to Content Security policy. I recently enabled it in my webapp:
  I have a JSP where I have multiple buttons each with a different action and I was handling different button actions with onClick event of JS but CSP does not allow using inline JS like this.</p>
  
  <p>Here are the buttons I have:</p>
  
  <pre><code>&lt;button type="submit"     
  onclick="form.action='${pageContext.request.contextPath}/product/edit'"    
  class="sbmt_bt"&gt;&lt;fmt:message key="save" /&gt;&lt;/button&gt;
  
  &lt;button type="submit"    
  onclick="form.action='${pageContext.request.contextPath}/product/delete';   
  return confirm('${deleteAlert}')" class="sbmt_bt"&gt;&lt;fmt:message key="delete"    
  /&gt;&lt;/button&gt;
  
  &lt;button type="submit"  
  onclick="form.action='${pageContext.request.contextPath}/product/add'"   
  class="sbmt_bt"&gt;&lt;fmt:message key="add" /&gt;&lt;/button&gt;
  </code></pre>
  
  <p>What would be a CSP compliant alternative for this?</p>