title: How to define in Grails an uploadForm and 2 different actions?
body: <p>I have a gsp view, with an , and 2 input text.
  I have a button to save and submit.</p>
  
  <p>Now I would like to add another button with a new action, in my case a button to schedule save.</p>
  
  <p>Note : in my controller I have define : def save (corresponding to button action save) and def schedule (corresponding to button action schedule).</p>
  
  <p>What is the best way to add Schedule in this gsp view :</p>
  
  <pre><code>&lt;g:uploadForm action="save" method="post" &gt;
      &lt;div class="dialog"&gt;
          &lt;table&gt;
              &lt;tbody&gt;
  
                &lt;tr class="prop"&gt;
                  &lt;td valign="top" class="name"&gt;
                    &lt;label for="payload"&gt;File:&lt;/label&gt;
                  &lt;/td&gt;
                  &lt;td valign="top"&gt;
                    &lt;input type="file" id="payload" name="payload"/&gt;
                  &lt;/td&gt;
                  &lt;td valign="top"&gt;
                    &lt;input type="file" id="payload2" name="payload2"/&gt;
                  &lt;/td&gt;
                &lt;/tr&gt;
  
                  &lt;tr class="prop"&gt;
                      &lt;td valign="top" class="name"&gt;
                          &lt;label for="lvalue"&gt;Lvalue:&lt;/label&gt;
                      &lt;/td&gt;
                      &lt;td valign="top" class="value ${hasErrors(bean:rmmInstance,field:'lvalue','errors')}"&gt;
                          &lt;input type="text" id="lvalue" name="lvalue" value="${fieldValue(bean:rmmInstance,field:'lvalue')}" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt; 
  
                  &lt;tr class="prop"&gt;
                      &lt;td valign="top" class="name"&gt;
                          &lt;label for="wvalue"&gt;Wvalue:&lt;/label&gt;
                      &lt;/td&gt;
                      &lt;td valign="top" class="value ${hasErrors(bean:rmmInstance,field:'wvalue','errors')}"&gt;
                          &lt;input type="text" id="wvalue" name="wvalue" value="${fieldValue(bean:rmmInstance,field:'wvalue')}" /&gt;
                      &lt;/td&gt;
                  &lt;/tr&gt; 
  
              &lt;/tbody&gt;
          &lt;/table&gt;
      &lt;/div&gt;
      &lt;div class="buttons"&gt;
          &lt;span class="button"&gt;&lt;input class="save" type="submit" value="Run Now" /&gt;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/g:uploadForm&gt;
  </code></pre>
  
  <p>I have just one form, but 2 different actions.</p>
  
  <p>Thanks !</p>