Sunday, December 4, 2005 03:55 PM
Read the csv file in a servlet, into a Collection. Set the Collection in session scope attribute.
Forward to the JSP. In the JSP, use a displaytag (displaytag.org, sourceforge.net/projects/displaytag) or eXtreme table (extremecomponents.org, sourceforge.net/projects/extremecomp), naming the session scope attribute containing the Collection to be displayed.
Both the displaytag and eXtreme taglibs have built-in exporting capabilities, to some combination of XLS, CSV, XML, PDF, for the table data -- I think displaytag can export CSV or XML; I think eXtreme can export XLS, CSV, or PDF. (sorry no Flash though, but why on earth would you use Macromedia Flash, to just display tabular data?)