title: ExtJS Spring file upload
body: <p>I have ext form panel which includes file upload item. Code is shown below:</p>
  
  <pre><code>fp = new Ext.FormPanel({
           fileUpload: true,
           autoHeight: true,
           bodyStyle: 'padding: 10px 10px 0 10px;',
           labelWidth: 50,
           defaults: {
               anchor: '95%',
               allowBlank: false,
               msgTarget: 'side'
           },
           items: [
              {
                  xtype: 'fileuploadfield',
                  id: 'form-file',
                  emptyText: 'Select excel file',
                  fieldLabel: 'File',
                  name: 'file',
                  buttonText: 'Choose File',
                  buttonCfg: {
                      iconCls: 'upload-icon'
                  }
              }
           ],
           buttons: [{
              text: 'Load',
               handler: function(){                   
                  if(fp.getForm().isValid()){
                    fp.getForm().submit({
                        url: myURL,
                        waitMsg: 'Uploading your photo...',
                        success: function(fp, o){
                          // I want to get loaded excel data list
                        },
                        failure : function(fp,o)
                        {
                          console.log('error');
                        }
                    });
                   }
               }
           }]
       });    
  </code></pre>
  
  <p>I have spring controller and some services for manipulating uploaded excel data. After I upload excel, I iterate data over excel and put them in a list.</p>
  
  <pre><code>@RequestMapping("/uploadExcel")
  @ResponseBody
  public Map&lt;String, ? extends Object&gt; uploadExcellData(@RequestParam("file") MultipartFile file)
  {
      Map&lt;String, Object&gt; result = new HashMap&lt;String,Object&gt;();
      try
      {
          result = uploadService(file);
      }
      catch(Exception ex)
      {
          logger.error(ex.getMessage(), ex);
      }
  
      return result;
  }
  
  public Map&lt;String,Object&gt; uploadService(MultipartFile argFile) throws BLOException, DAOException 
  {
      Map&lt;String,Object&gt; result = new HashMap&lt;String,Object&gt;(3);
  
      List importExcelList = null;
      try 
      {
          if (!argFile.isEmpty()) 
          {   
              importExcelList = parseExcelAndCreateListFunction(argFile.getInputStream());
  
              result.put("total", new Integer(importExcelList.size()));
              result.put("success", true);
  
              result.put("data", importExcelList);
          }
      } 
      catch (IOException e) 
      {
          logger.error(e.getMessage(), e);
      }
  
      return result;
  }
  </code></pre>
  
  <p>When I run this code, I got "<code>NetworkError: 404 Not Found</code>".
  I want to return excel data list after form submit. I couldn't do this. How can I get excel data list on submit callback?</p>