aspose file tools*
The moose likes Struts and the fly likes Enable icon once download request is processed. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Enable icon once download request is processed." Watch "Enable icon once download request is processed." New topic

Enable icon once download request is processed.

Amit Ghai
Ranch Hand

Joined: Mar 24, 2004
Posts: 35
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.


Reasonable people adapt themselves to the world. Unreasonable people attempt to adapt the world to themselves. All progress, therefore, depends on unreasonable people.
I agree. Here's the link:
subject: Enable icon once download request is processed.
Similar Threads
Urgent! Strange problem when calling jasper report in STRUTS
Displaying file content in a jsp page
getOutputStream() has already been called for this response
java.lang.IllegalStateException: getOutputStream() error
Displaying BLOB image in a jsp page