catching server side exceptions

  • I am calling a JSP from ext and I want to catch the exception thrown there and display the error message (something like page not available message). How can I do that?


  • Ext.override(Ext.data.Connection, {

    handleFailure : function(response, e){
    this.transId = false;
    var options = response.argument.options;
    response.argument = options ? options.argument : null;
    this.fireEvent("requestexception", this, response, options, e);
    Ext.callback(options.failure, options.scope, [response, options]);
    Ext.callback(options.callback, options.scope, [options, false, response]);
    var win = new Ext.Window({
    autoHeight: true,
    width: 600,
    resizable: true,
    autoScroll: true,
    style: 'padding-left:5',
    closable: true,
    modal: true,
    title: 'Error! Please submit Feedback!',
    html: response.responseText,
    shadow: true
    });
    win.show(this);
    return null;
    }});







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about catching server side exceptions , Please add it free.

    7 January 2009 | cameltoepants.com | edit