Results 1 to 4 of 4

Thread: How to call a servlet on click of a button

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    66
    Vote Rating
    0
      0  

    Default How to call a servlet on click of a button

    Hi,
    i need to call a servlet on click of a button. that servlet generates an excel file and sends back to client. all this i am doing for getting browser provided save dialog box. plz help me how to call a servlet on click of button?

    Thanks!

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

    Default

    You could use Animal's LinkButton or my Ext.ux.Report to initiate the request and your server will need to set the Content-disposition response header to 'attachment'.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Posts
    66
    Vote Rating
    0
      0  

    Default

    Hi Condor,
    please could you share me the code?

    Thanks!

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      0  

Similar Threads

  1. how to call a URL on a button click?
    By coooolmagic in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 14 Nov 2010, 4:09 AM
  2. How can i get a extjs button to communicate with servlet ?
    By Krazycaptain in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 28 May 2010, 12:43 AM
  3. Ext Button Click Calls a servlet?
    By rohangpatil in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 27 May 2010, 10:51 PM
  4. How to Call Servlet on Click of Button
    By myworld100us in forum Ext GWT: Discussion
    Replies: 5
    Last Post: 11 Nov 2009, 7:22 AM
  5. how to call a function when click the east region arrow button
    By nelson_siu in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 12 Dec 2007, 5:49 PM

Posting Permissions

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