title: http status 404 in struts 2 result
body: <p>im in learning struts 2.<br>
  i create a simple project that can add and list the PRODUCT that user add. list is my first page and show all product that added. it is my struts.xml file:  </p>
  
  <pre><code>&lt;struts&gt;
  
  &lt;package name="default" namespace="/" extends="struts-default"&gt;
  
      &lt;default-action-ref name="listProduct" /&gt;
  
      &lt;action name="listProduct" class="control.ProductHandler" method="list"&gt;
          &lt;result name="success"&gt;/list.jsp&lt;/result&gt;
      &lt;/action&gt;
      &lt;action name="addProduct" class="control.ProductHandler" method="add"&gt;
          &lt;result name="success"&gt;/listProduct&lt;/result&gt;
      &lt;/action&gt;
  
      &lt;action name="*Form"&gt;
          &lt;result&gt;{1}.jsp&lt;/result&gt;
      &lt;/action&gt;
  &lt;/package&gt;
  
  &lt;/struts&gt;
  </code></pre>
  
  <p>when i enter <code>localhost:8080/product</code> in then browser it show me list.jsp file. in this file i have a link that with it i can goto add.jsp file. href of this link is <code>addForm</code>.<br>
  in add.jsp file i have 3 text field and a submit button. when entered data added action class return "success" and i most goto <code>localhost:8080/product</code> (default page) but it show me :</p>
  
  <blockquote>
    <p>HTTP Status 404 - /product/listProduct</p>
  </blockquote>
  
  <p>this is my action file:  </p>
  
  <pre><code>public String list(){
      products=Database.get();
      return "success";
  }
  
  public String add(){
      if (add!=null){
          Product product=new Product(name, producer, price);
          Database.add(product);
      }
      return "success";
  }
  </code></pre>
  
  <p>where is my mistake?
  thanks.</p>