title: struts 1.1 : dispatch action mistake : Error 400 no parameter in request
body: <p>In order to have multiple actions on one form, I use dispatchAction.
  I'm starting with a lonely action which works when I use standard action with execute method. Before adding several action I start to convert this one.</p>
  
  <p>At first load of the jsp, before any submit, I get the error :</p>
  
  <p>Error 400: Request[/rechercheUtilisateur] does not contain handler parameter named hidden </p>
  
  <p>Here is my configuration :</p>
  
  <p>struts-config :</p>
  
  <pre><code>&lt;action path="/rechercheUtilisateur" type="lan.poujoulat.osac.actions.RechercheUtilisateurAction" name="formRechercheUtilisateur" validate="true" input="/Administration/acces.jsp" scope="request" parameter="hidden"&gt;
      &lt;forward name="réussiteRecherche" path="/Administration/acces.jsp"&gt;
      &lt;/forward&gt;
  </code></pre>
  
  <p>jsp Administration/acces.jsp : </p>
  
  <pre><code>&lt;SCRIPT&gt;
     function setHidden(value){document.formRechercheUtilisateur.hidden.value=value;}
  &lt;/SCRIPT&gt;
  
  &lt;html:form action="/rechercheUtilisateur"
      name="formRechercheUtilisateur"
      type="lan.poujoulat.osac.forms.FormRechercheUtilisateur"&gt;
  ...
  &lt;td align="center" width="80"&gt;&lt;a href="#"
      title='"Rechercher" /&gt;'&gt; &lt;input type=image
      value=submit src="./image/btnRech.gif" width="22" height="20"
      border="0" onclick="setHidden('recherche');"&gt; &lt;/a&gt;&lt;/td&gt; 
   &lt;/a&gt;
  ...
            &lt;html:hidden property="hidden" value="recherche"/&gt;
  &lt;/html:form&gt;
  </code></pre>
  
  <p>RechercheUtilisateurAction.java :</p>
  
  <pre><code>public class RechercheUtilisateurAction extends DispatchAction
  {
  
      public ActionForward recherche(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
              throws Exception {
  </code></pre>
  
  <p>I add the hidden property to my form :</p>
  
  <pre><code>public class FormRechercheUtilisateur extends ValidatorForm
  {
  ...
      private String hidden = " ";
  ...
  </code></pre>