tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wentzel <Michael.Went...@aswethink.com>
Subject RE: Report generation
Date Mon, 16 Jul 2001 13:44:07 GMT
> 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 

Mime
View raw message