• Post Reply Bookmark Topic Watch Topic
  • New Topic

Enable icon once download request is processed.

 
Amit Ghai
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have an icon for excel download on a jsp page. On clicking the icon I disable the icon and a request is made to a struts action to create an excel using HSSF. The content disposition is set as attachment with a filename and the bytes of the HSSFWorkbook is written to the response. The action forward returned is null. I want to enable the icon once the struts action has performed the creation and writing bytes to response. Is there a way to inform the jsp with the icon that the request for the excel generation has been completed and a dialog box has been opened for save/open excel? I need this so as to enable back the icon.

Thanks,
Amit
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!