title: simple way to call struts2 action
body: <p>I need to test certain struts2 action classes in struts and I want to use just a regular old button. not necessarily a submit button, just a button. What would be the simplest way for me to tie an action class to a click event?</p>
  
  <p>say I have a jsp page</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
  
   &lt;/head&gt;
  
   &lt;body&gt;
  
      &lt;form&gt;
        &lt;button id="buttonId"&gt;imAButton /button&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>and an action class</p>
  
  <pre><code>public class ActionClass1 {
  
  public String execute(){
  
      System.out.println("yes this test is juvenile but it works!");
  
        return "iWork";  
  }}
  </code></pre>