aspose file tools*
The moose likes Servlets and the fly likes Enable/Disable Hyperlink (Multiple Submits) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Enable/Disable Hyperlink (Multiple Submits)" Watch "Enable/Disable Hyperlink (Multiple Submits)" New topic
Author

Enable/Disable Hyperlink (Multiple Submits)

deepak kukreja
Ranch Hand

Joined: Aug 13, 2001
Posts: 54
Hi,

I have a hyperlink on a jsp page which generates a report in PDF format. When user selects large amount of data and clicks on this link it takes lot of time for the
report generation (this is fine). Issue is: If user selects large amount of data and clicks multiple times on this hyperlink, multiple threads started on the application server (WAS 6) and the site performance goes down.

The flow is --> User clicks on a hyperlink on a JSP , Request goes to a servlet which generates the PDF report and provides the PDf back to the user.

Now one way to control multiple submit could be that I disable the hyperlink on the click but I do not know how to enable it back as the response would be already
commited through the PDF report that was given back to the user(OutputStream).Can somebody please help me on this by giving some suggestions/best
practices/examples? any help would be appreciated.

Thanks,
Deepak

Deepak<br />SCJP
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
Can you enable the hyperlink on load of the page. The moderators might move this to the HTML/Javascrpt forum.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
deepak kukreja
Ranch Hand

Joined: Aug 13, 2001
Posts: 54
Hi,

I dont think this is javascript question.

my jsp has a hyperlink to generate a pdf report .Response is commited through outputstream from the servlet. Once the Outputstream is commited from servlet, I want to refresh the jsp page which had the hyperlink to generate a PDF. i want control back on jsp even though response was commited through outputstream. any workaround would be appreciated.

thanks,
Deepak
 
jQuery in Action, 2nd edition
 
subject: Enable/Disable Hyperlink (Multiple Submits)
 
Similar Threads
lost session object in new window
Can JTable be embeded in a JSP
I am getting old file from the server
Generate PDF report from jsp
Script Time Out