var form1=new Ext.FormPanel({
        renderTo:"div",
        width:500,
        height:300,
        frame:true,
        title:"ajax提交",
        collapsible:true,
        minButtonWidth:60,
        labelAlign:"right",
        defaultType:"textfield",
        items:[{
            fieldLabel:"用户名",
            id:"txtName",
            allowBlank:false,
            blankText:"用户名不能为空!"
        },{
            fieldLabel:"密码",
            allowBlank:false,
            blankText:"密码不能为空!",
            inputType:'password'
        },{
            fieldLabel:"备注"
        }],
        buttons:[
         {
         text:'提交',
         handler:function(){
         if(form1.getForm().isValid()){
         form1.getForm().submit({
         url:'Login',
         success:function(from,action) {
                            Ext.Msg.alert("返回提示","哈哈成功了");
                           },
                        failure:function(form,action) {
                            Ext.Msg.alert("返回提示","发生了错误");
                        }
         });
         }
         }
         },
         {
          text:'重置',
          handler:function(){
           form1.getForm().reset();
          }
         }
        ]
     
    });
});
提交到后台一个servlet类 报syntax error 路径是Login