title: setting up struts2 project in netbeans Maven
body: <p>the following is what i do.
  1. download and use all the jar
  2.building web.xml in the WEB-INF</p>
  
  <pre><code>  &lt;!--?xml version="1.0" encoding="UTF-8"?--&gt;
  
  &lt;web-app id="WebApp_ID" version="3.0"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"&gt;
  
      &lt;display-name&gt;Basic Strust 2 Project setup on Glassfish 3.0.1&lt;/display-name&gt;
  
      &lt;filter&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
  
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;struts2&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>and then setting the struts.xml in WEB-INF</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE struts PUBLIC
      "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
      "/WEB-INF/classes/struts-2.1.7.dtd"&gt;
  
  &lt;struts&gt;
      &lt;!--
      You could also set the constatnts in the struts.properties file
      placed in the same directory as struts.xml
      --&gt;
      &lt;constant name="struts.devMode" value="true" /&gt;
  
      &lt;package name="test" extends="struts-default" namespace="/"&gt;
  
          &lt;!--
          If no class attribute is specified the framework will assume success and
          render the result index.jsp
          If no name value for the result node is specified the success value is the default
          --&gt;
          &lt;action name="help"&gt;
              &lt;result&gt;/help.jsp&lt;/result&gt;
          &lt;/action&gt;
  
      &lt;/package&gt;
  
  &lt;/struts&gt;
  </code></pre>
  
  <p>and building the simple help.jsp in the root folder.</p>
  
  <p>and i built the action class, help.java</p>
  
  <pre><code>import com.opensymphony.xwork2.ActionSupport;
  
  public class help extends ActionSupport{
      @Override
      public String execute() throws Exception {
          return SUCCESS;
      }
  }
  </code></pre>
  
  <p>actually i think for now i do not need this java code.</p>
  
  <p>when i run it, and go into the help.action, it just says 404 cannot find,
  HTTP Status 404 - There is no Action mapped for namespace [/] and action name [help] associated with context path [/131X].</p>