title: help with creating an action class (java)
body: <p>Hi I have a jsp below:</p>
  
  <pre><code>    &lt;form action="testPage.do" method="post" name='testForm' id="testForm"&gt;
  
  
      &lt;h2&gt;&lt;bean:message bundle="test" key="label.header1"/&gt;&lt;/h2&gt;
  
      &lt;p&gt;&lt;bean:message bundle="test" key="label.dropdown1/&gt; &lt;/label&gt;
  
      &lt;select&gt;
          &lt;option selected="selected"&gt;Soccer&lt;/option&gt;
          &lt;option&gt;Football&lt;/option&gt;
          &lt;option&gt;Baseball&lt;/option&gt;
          &lt;option&gt;Hockey&lt;/option&gt;
      &lt;/select&gt;
      &lt;/p&gt;
  
  
      &lt;p&gt; 
      &lt;label&gt;&lt;bean:message bundle="test" key="label.firstName"/&gt; &lt;/label&gt;
      &lt;input type="text"" name="firstname"&gt;
      &lt;/p&gt;
  
      &lt;p&gt; 
      &lt;label&gt;&lt;bean:message bundle="test" key="label.lastName"/&gt; &lt;/label&gt;
      &lt;input type="text"" name="lastname"&gt;
      &lt;/p&gt;
  
  
      &lt;/form&gt;
  </code></pre>
  
  <p>I am trying to create an action class that will populate my drop down menu for me and also get the value that is typed into the first and last name textboxes. 
  For the action class I have:</p>
  
  <pre><code>public class SportAction extends BaseAction {
  
  
      public ProcessResult executeFirstTimeInLogic(ActionMapping mapping,
                      ActionForm form, HttpServletRequest request,
                      HttpServletResponse response,
                      ProcessResult processResult) throws Exception {
              log.info("executeFirstTimeInLogic");
       processResult.setForward(mapping.findForward("next"));
       return processResult;
      }
  
      public ProcessResult executeSubmitLogic(ActionMapping mapping,
                      ActionForm form,
                      HttpServletRequest request,
                      HttpServletResponse response,
                      ProcessResult processResult) throws Exception {
              log.info("executeSubmitLogic");
  
               return processResult;
       }
  
  }
  </code></pre>
  
  <p>How would I create methods to get the values typed into the textboxes and a method to populate the drop down menu from the action class?</p>