Results 1 to 5 of 5

Thread: Servlet call not happen inside the store

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    55
    Answers
    2

    Default Servlet call not happen inside the store

    Hi,

    I am creating one new store inside the controller. here i am calling one servlet, but its not working.

    Please help me to solve this issue.

    here is my code

    var gridStore = new Ext.data.Store({
    storeId: 'viewGridStore',
    model:model,
    fields: this.storeFields,
    disableCaching : false,
    autoLoad: true,
    proxy: {
    type: 'ajax',
    url: '/mypath/myServlet',
    extraParams: {
    asession: sessionId,
    buid: buId,
    filePath: value,
    action:'validateQuery'
    },
    reader: {
    type: 'xml',
    record:'row'
    }
    }
    });


    Thanks in advance

  2. #2
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106

    Default

    Try removing the leading forward slash from your URL. This is forcing the path to be root relative instead of context relative.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    55
    Answers
    2

    Default

    Hi Friend,

    Thanks for your guidance. But its not working. i am getting "Failed to load resource" error in my browser.

    Kindly help me to solve this issue.

  4. #4
    Sencha User friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106

    Default

    Can you directly invoke the Servlet from the address bar in your browser and get an expected result?

  5. #5
    Sencha User
    Join Date
    Apr 2012
    Posts
    55
    Answers
    2

    Default

    Hi,

    I solved that issue.
    The param 'value' is too length and i send as GET method. i changed as POST, its working fine.

    Thanks for ur help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •