You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Wentzel <Mi...@aswethink.com> on 2001/07/16 15:44:07 UTC

RE: Report generation

> I have a report which is written as jsp file, and processed at runtime.
The jsp 
> generates a report about objects in memory, using their attributes (The
object is a > JavaBean). The problem now is that I want to save the reports
for future use, even > when the object has been removed from the memory. Is
there any way to save the 
> output of jsp processing to a file?

I can think of several ways to approach this.  You could create serialized
strings
for the object and create a repository for these.  This would reduce the
size of the repository over reproducing the entire report in the repository
but it means that whenever the report is requested again it would have to be
regenerated.

You could also have all your output go to a StringBuffer then .toString()
the StringBuffer at the end of the jsp as well as outputting to some sort of
repository.

Either of these techniques could be encapsulated into a bean or tag.  Just a
couple of ideas.



--- 
Michael Wentzel 
Software Developer 
Software As We Think - http://www.aswethink.com