日期:2014-05-19  浏览次数:20922 次

extJs 传到后台的字符串成[object object]
extJs 传到后台的字符串成[object object]
JScript code
    },{
            xtype:'textfield',
            fieldLabel:'邮 箱',
            name:'useremail',
            id:'useremail',
            regex: /^\s*\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*(\;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*(\;)*\s*$/,
            regexText: '邮箱格式不正确!'

                }],
            buttons:[{
                text:'提交',
                type:'submit',
                labelAlign: 'right',
                buttonAlign: 'center',
                handler:function() {
                    Ext.Ajax.request({
                        url:'regadd',
                        method:'POST',
                        params:{
                            'user.username':Ext.get("username").dom.value,
                            'user.userpassword':Ext.get("userpassword").dom.value,
                            'user.useremail':Ext.get("useremail")
                        },



 
Java code
System.out.println(user.getUseremail())

后台输出[object object]

求高手指导!

------解决方案--------------------
'user.useremail':Ext.get("useremail")
改成:
'user.useremail':Ext.get("useremail")).dom.value