View Full Version : Passing data from grid to servlet upon updation

Tom Schildt
28 Oct 2013, 4:49 AM
Hi All,
I'm a newbie to ExtJS and very much excited to learn about it. I'm working on the CRUD operations in the grid. I'm able to read data from DB through servlet using PROXY in ExtJS. But while updating the data in the grid I'm not able to fetch the json object in the servlet.:( Please find the code snippet for the 'Store' below:Please tell me how to fetch the json data in the servlet.
Code Snippet:
Ext.define('BM.store.Users', { extend: 'Ext.data.Store',
model: 'AM.model.User',
autoLoad: true,
proxy: {
type: 'ajax',
api: {
read: 'Servlet1Name',
update: 'Servlet2Name'
reader: {
type: 'json',
root: 'users',
successProperty: 'success'
writer: {
type: 'json',
writeAllFields: true,
root: 'users'


Thanks in advance.:-)

Gary Schlosberg
31 Oct 2013, 7:43 PM
So your Servlet2Name script is not getting any data? Is it checking for a POST?