Ext表单我运用getForm().submit方式进行提交,我是这样实现的
var btnSubmit=new Ext.Button(
   {
   text:"提交",
   handler:function(){
   f.getForm().submit(
   {
   success:function(form,action)
   {
     form.items.each(function(field)
     
     {
      if(field.isFormField)
      { 
        alert(field.getName+"="+field.getValue());
      }
     });
   },
   
   
   failure:function(){
   Ext.Msg.alert("","对不起,表单提交失败!");
   }
   });
   
   }
   });表单的内容如下
var f=new Ext.form.FormPanel(
   {
     url:"register.action",
     method:"post",
     renderTo:Ext.getBody(),
     title:"合同管理",
     style:"padding:10px",
     frame:true,
     labelAlign:"right",
     width:"35%",
     height:300,
      items:[username,password,password1,c_time,hestate],
     buttons:[btnSubmit,btnReset]
   }
我提交后如何在后台Action中获取提交的值,我在action中定义相同名字的和类型的变量,并声明他们的get,set方法,在execute()方法中获取这些值时为什么都为空,还有就是action中该如何处理getForm().submit提交时的回调函数,小弟是新手,搞了一天了还是不行,高手指点指点