This is my js code.I want all the elements of the grid to be sent to my java class...
var grid_mapping = new Ext.grid.GridPanel({
id : 'grid_mapping',
store : store_UEST,
width : 450,
height : 700,
columns : [{
header : "User Elements",
width : 150,
sortable : true,
dataIndex : 'UserElements',
mode : 'local',
editor : {
xtype : 'textfield',
allowBlank : true
}
}, {
header : "Standard Taxonomy Elements",
width : 150,
mode : 'local',
sortable : true,
dataIndex : 'StdTaxElem',
editor : {
xtype : 'textfield',
allowBlank : false
}
}

],
viewConfig : {
forcefit : true
},
plugins : [editor],

height : 700,
width : 450,
frame : true,
tbar : [
var data = [];
grid_mapping.getStore().each(function(rec){
data.push(rec.data);
});
Ext.Ajax.request({
url: 'mappingScreen.action?act=testajax',
jsonData: data,
success: function(response){
alert('success from ajax');
}
});
}
}]
});

I do get the o/p as expected in the POST tab of firebug but dont get anything in the response tab...
How do i send all the elements to the server???
plz help