This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF: Save session context to local file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF: Save session context to local file" Watch "JSF: Save session context to local file" New topic
Author

JSF: Save session context to local file

Knolf Moervenson
Greenhorn

Joined: Jul 25, 2008
Posts: 12
Hi!
I am trying to write a method for saving session context to a local file, getting the save-as-dialog.
Creating an Excel file containing the SessionContext is no problem (using HSSF excel workbench).

The problem is to get that FileOutputStream to a ServletOutputStream, so that I can stream the content to a local file. I tried that code, but it does not work.


any ideas? would be great.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF: Save session context to local file
 
Similar Threads
Save File on Client Machine
Redirect after close download box
getOutputStream() has already been called for this response
opening the excel sheet from servlet
how to download a zip file