[opencms-dev] Downloading a file from Admin interface - A_CmsListDialog

Michael Moossen m.moossen at alkacon.com
Mon Jan 11 10:35:02 CET 2010


Hi Chuck!

yes, some how that is not so easy to implement, but we have similar 
functionality in the 'Workplace Tools > Log File' as well as in the 
'Account Management > Im-/Export User Data' tools.
so just check the source code as example.

HTH
-------------------
Michael Moossen

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

Chuck Mysak schrieb:
> Hello all,
> 
> I have a small problem regarding downloading a file from the OpenCms 
> admin interface.
> 
> I'm implementing a CmsListDialog and at executeListSingleActions i try 
> to send a file to the user's browser but hasn't worked out so far.
> If I use the OutputStream of the response object, the admin interface 
> freezez from the point of the download further.
> 
> If I use the same jsp that instantiates the CmsListDialog (using  
> getToolManager().jspForwardTool or  getToolManager().jspForwardPage) to 
> get a parameter and download the file before it instantiates the list, 
> the same thing happens (freezes the interface). I searched the OpenCms 
> admin interface to see if Alkakon did something like this to take a peek 
> into the source code, but couldn't find anything.
> 
> The file doesn't exist on the server, it's "built" from a database blob.
> 
> Regards,
> 
> Chuck
> 
> 
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list