PDA

View Full Version : Ext.ajax.request form submission.



arunns
21 Jun 2010, 4:37 PM
I have a JSP (form) and a button on click of which I open a Ext.window

On clicking of Submit in the Ext.window, i call the below code.

Ext.Ajax.request({
url : '/action1.do',
method: 'POST',
success: function ( result, request ) {
Ext.MessageBox.alert('Status','Success');
},
failure: function ( result, request ) {
Ext.MessageBox.alert('Status','Failure ');
}
});

I am trying to forward to myAction class by giving /action1.do in the url which will get the form fields from request and forward to corresponding JSP page. (ultimately submitting the JSP form).

How to implement this scenario ?