title: How to bind form based actions like 'Save' to designated Java classes mentioned in xwork in Confluence
body: <p>I have made some significant progress in my customization efforst thanks to your help and looking forward to move forward similarly.
  I have created the custom tab in the 'Advanced' tab and it now looks like <a href="http://imageshack.us/f/809/newpageg.png/" rel="nofollow">this</a>. 
  I have been able to add a text field as well as a 'Save' button. I actually followed the 'Edit Space Details' option and took two of its form elements to achieve the output.
  This is how my VM looks now.</p>
  
  <pre><code>  ##requireResource("confluence.web.resources:space-admin")
   &lt;html&gt;
     &lt;head&gt;
         &lt;title&gt;Freeway Project Creation&lt;/title&gt;
        &lt;meta name="decorator" content="atl.general" /&gt;   
     &lt;/head&gt;
  
      &lt;content tag="key"&gt;$action.space.key&lt;/content&gt;
  
    &lt;body&gt;    
  
     #applyDecorator("root")
       #decoratorParam("helper" $action.helper)
       #decoratorParam("context" "space-administration")
       #decoratorParam("mode" "view-space-administration")
  
      #applyDecorator ("root")
       #decoratorParam ("context" "spaceadminpanel")
       #decoratorParam ("selection" "add-fpc-label-action-web-ui")
       #decoratorParam ("title" $action.getText("action.name"))
       #decoratorParam ("selectedTab" "admin")
       #decoratorParam("helper" $action.helper) 
  
  
        &lt;div &gt;
              &lt;table width="95%" border=0 cellspacing=0 cellpadding=5&gt;
                &lt;form name="editspace" method="POST" &gt;
  
          #bodytag( "TextField" "label='space-name'" "name='name'" "size=40" )
          #param ("labelwidth" "100")
          #param ("tdcolor" "f0f0f0")
          #end
  
              &lt;tr&gt;
                  &lt;td colspan="2" align="center"&gt;
                    #tag( "Submit" "name='confirm'" "value='update.name'" "theme='notable'" )
                  #tag( "Submit" "name='cancel'" "value='cancel.name'" "theme='notable'" )
                 &lt;/td&gt;
               &lt;/tr&gt;
  
          &lt;/form&gt;
       &lt;/table&gt;
    &lt;/div&gt;
  
  
  
      #end
     #end    
    &lt;/body&gt;
   &lt;/html&gt;
  </code></pre>
  
  <p>I would like to understand how this interaction with my JAVA class will result in the output like. For eg: I will enter the name in the text box for name and hit save and on a resulting page it must display the name entered.</p>
  
  <p>As of now my designated java class looks like this. </p>
  
  <pre><code>  package com.atlassian.myorg;
  
   import com.atlassian.confluence.core.ConfluenceActionSupport;
   import com.atlassian.confluence.pages.AbstractPage;
   import com.atlassian.confluence.pages.actions.PageAware;
   import com.opensymphony.xwork.Action;
  
   /**
     * The simplest action possible
   */
   public class FreewayProjectAction extends ConfluenceActionSupport 
    {
       @Override
        public String execute() throws Exception
     {
         return Action.SUCCESS;
    }
  
   }
  </code></pre>
  
  <p>So I have 3 questions:</p>
  
  <ol>
  <li><p>The 'Edit Space Details' shows the following URL 'http://localhost:1990/confluence/spaces/doeditspace.action?key=LBTEST' when i mouse over the 'Save' button. I am assuming that its governing Java class is EditSpaceDetails. So is the doEdit() method  (see <a href="http://imageshack.us/f/542/decompdoedit.png/" rel="nofollow">here</a> )inside that class that swings into action when we try to save the edit action of the space ? Can i get to see the xml that has this mapping specifically for this edit space details action? Is my assumptin correct ?</p></li>
  <li><p>In order to have such a functionality i have mentioned earlier i.e. displaying the name entered in my custom page as detailed above what will be the changes required in my Java class.</p></li>
  <li><p>In the page i have just customised there is the text box and the label is 'Name' . Should i use a different xml so that i can provide my custom label like "Project Name" ?</p></li>
  </ol>
  
  <p>Please do kindly advice me on the same.</p>
  
  <p>Thanks 
  Angie</p>