title: Not able to post form in Adode CQ5
body: <p>I am a newbie in AdobeCQ5. I am facing some trouble in posting form. Here is my Structure -</p>
  
  <pre><code>/apps/&lt;myproject&gt;/components/mytestcomponent
  </code></pre>
  
  <p>mytestcomopnent.jsp  has following code - </p>
  
  <pre><code>&lt;form id="myForm"  action="&lt;%=resource.getPath()+".html" %&gt;"&gt;
      &lt;input type="text" id="t1" class="input-small" placeholder="Temprature F" /&gt;
      &lt;input type="text" id="t2" class="input-small" placeholder="Temprature C" readonly/&gt;
      &lt;button type="button" id="cbtn" class="btn"&gt;Convert&lt;/button&gt;
  &lt;/form&gt;
  
  &lt;script&gt;
      $(document).ready(function() {
          $('#cbtn').click(function ()  {        
              var URL = $("#myForm").attr("action");   
              alert(URL); 
              var t1=$("#t1").val();
              var t2=$("#t2").val();
              $.ajax({
                  url: URL,
                  data:{'t1':t1},
                  type:"post",
                  success: function(data, status) {
                      $("#t2").val(data);
                  },
                  error: function( xhr, txtStat, errThrown ) {
                      alert("ajax  error! " + txtStat + ":::" + errThrown);
                  }
              }); 
          }); 
      });    
  &lt;/script&gt;
  </code></pre>
  
  <p>This is giving my response code 200 (Success) but the output is not desired. My mycomponent.POST.jsp has following code -</p>
  
  <pre><code>&lt;%
      // TODO add you code here
      String t1=request.getParameter("t1");
  %&gt;
  &lt;%= t1 %&gt;
  </code></pre>
  
  <p>It gives the following output</p>
  
  <pre><code>  Content modified /content/imobile/en/jcr:content/social.html
    Status    
    200
    Message   
    OK
    Location     /content/imobile/en/_jcr_content/social.html
    Parent Location  /content/imobile/en/_jcr_content
    Path  
    /content/imobile/en/jcr:content/social.html
    Referer http://example.comt:4502/content/imobile/en.html
    ChangeLog 
   &lt;pre&gt;&lt;/pre&gt;
   Go Back
   Modified Resource
   Parent of Modified Resource
  </code></pre>
  
  <p>Please help to resolve this.</p>