PDA

View Full Version : Ext.ajax.request form submit



arunns
21 Jun 2010, 7:30 PM
I have a JSP(form) which opens a Ext.window on click of a button.

On click of submit button in the Ext.window, I have this following code inside a button handler function.

Ext.Ajax.request({

url:'/myaction.do',
method: 'POST',
success: function(){
Ext.MessageBox.alert("success");
},
failure:function(){
Ext.MessageBox.alert("failure");
}
});

});

1. On click of this button should submit the original JSP (form) calling the Action(action1.do) which will get the request parameters and forward to other JSPs correspondingly ?

How should I handle this scenario ?