title: spring web flow + ajax data transfer
body: <p>I have been using spring mvc for a while, but now i have started with Spring web flow. and trying to create apps easily using swf.</p>
  
  <p>my doubt is:</p>
  
  <p>I have a JSP , where i have few textboxes to be populated by the user. I want to transfer this user data to the spring controller via flow.xml.</p>
  
  <p>so how do i do that..??</p>
  
  <p>here is my jsp(ajax code)</p>
  
  <pre><code>    var postData = {};
      postData["school_name"] = $("#school_name").val();
      postData["borrower_address_zip_code"] = $("#borrower_address_zip_code").val();
      postData["student_enrollment"] = $("#student_enrollment").val();
        $.ajax({
          type : 'POST',
          data : JSON.stringify(postData),
          contentType : 'application/json',
          url : '${flowExecutionUrl}&amp;_eventId=handel1&amp;ajaxSource=true',
          cache : false,
          success : function(data) {
          alert('done');
          },
          error : function(jqXHR, textStatus, errorThrown) {
             alert('textStatus'+textStatus + 'errorThrown'+errorThrown);
           }
      });
  </code></pre>
  
  <p>and here is my flow.xml. </p>
  
  <pre><code>    &lt;transition on="handel1"&gt;
        &lt;!-- requestParameters --&gt;
            &lt;evaluate expression="studentLoan.createProperty(*********)"
                result="flowScope.content123" /&gt;
        &lt;/transition&gt;
  </code></pre>
  
  <p>What should i have in place of <strong><em>*</em>****</strong> so that i can hold the data, and invoke the createProperty method, present in controller.</p>
  
  <p>I have got a turn around for this , by using "requestParameters" in place of <strong><em>*</em>***</strong>. and passing the javascript array in the query string .
  So is this fine???? 
  OR
  If there is some other better way of doing the same. then please let me know.</p>