View Full Version : Proxy does not use method post

20 Jan 2011, 1:29 AM

i try to use a proxy with a JavaServlet and want to use the method Post. But though i set method to post the proxy uses still the method Get.

var modelReport = Ext.regModel('Report', { fields: ['name', 'description'] });

var arrayreaderReport = new Ext.data.ArrayReader({ model: 'Report' }, modelReport);

var storeReport = new Ext.data.JsonStore(
model : 'Report',
sorters: 'name',
autoload: true,
proxy: proxyReport
type: 'ajax',
// try to give params via url, not important yet
url : 'ServletQueries?usr=rscheer&pwd=hamburg12', //'testReports2.json',
method: 'post',
params: { usr: 'rscheer', pwd: 'hamburg12'},
reader: arrayreaderReport

It worked with the url of the file testReports2.json, but not with the url of the ServletQueries.

Would anybody please tell me where the problem is? As workaround i could use the method Get, but i would prefer the method post for this purpose.

Thanks a lot,