Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Pierre Goupil
Hello ! You were talking about the DisplayTag library. It looks great for what I presently need : to export my JSPs as Office files. But still three questions remain : - only being able to export my Excel data on a table-per-table basis looks maybe a bit poor to me : the pages I want to export a

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Skip Hollowell
Hack Alert: public String exportCSV() throws Exception { // Search based upon the entered criteria // TODO: pass the previously found List in, instead of performing the locate again // Use the Criteria, create a list of transactionBeans, and return it UserBean

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Or you can write your own result, and generate the > CSV file there (reusable, clean, bla bla) I did that, to a very small degree (not to the extent of JSONResult; I'm lazy) but haven't gotten around to cleaning it up yet--it's pretty hacky. Someon

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Musachy Barroso
Or you can write your own result, and generate the CSV file there (reusable, clean, bla bla) regards musachy On 6/19/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Quite honesty, I couldn't make the connection, in my > head, on how the result paramet

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Quite honesty, I couldn't make the connection, in my > head, on how the result parameters in my .xml file > corresponded to the action and method I am working in. I think the stream result is specifically to stream the contents of an existing file,

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Skip Hollowell
Hi Dave: Quite honesty, I couldn't make the connection, in my head, on how the result parameters in my .xml file corresponded to the action and method I am working in. 1. I don't believe I have to use the execute method, correct? In my case, I have an exportCSV() method in my action, and c

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > The simple days of just dropping my values onto the > response stream seem to be very much over. Yay! > I attempted to play with the Stream Result but > crashed and burned in a big way. How so? d.

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Skip Hollowell
The simple days of just dropping my values onto the response stream seem to be very much over. // Back in the Day... (Struts 1) response.setContentType("application/text"); response.setHeader("Content-disposition", "filename=\"Testing.csv\""); out.println("Column1,Column2,Column3,Co

Re: [S2] Exporting to CSV and Excel

2007-06-19 Thread Adrian Ost
David Durham, Jr. schrieb: On 6/18/07, Jeff Amiel <[EMAIL PROTECTED]> wrote: On 6/18/07, Skip Hollowell <[EMAIL PROTECTED]> wrote: > I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper > plugin is included. Does that mean that Jasper is the endorsed > recommended way to expor

Re: [S2] Exporting to CSV and Excel

2007-06-18 Thread David Durham, Jr.
On 6/18/07, Jeff Amiel <[EMAIL PROTECTED]> wrote: On 6/18/07, Skip Hollowell <[EMAIL PROTECTED]> wrote: > I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper > plugin is included. Does that mean that Jasper is the endorsed > recommended way to export data to Excel and or CSV?

Re: [S2] Exporting to CSV and Excel

2007-06-18 Thread Jeff Amiel
On 6/18/07, Skip Hollowell <[EMAIL PROTECTED]> wrote: I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If so, great. If not, can you offer up what you feel i

[S2] Exporting to CSV and Excel

2007-06-18 Thread Skip Hollowell
I see that in the new 2.0.8 (Thanks Ted, Don and team) that the Jasper plugin is included. Does that mean that Jasper is the endorsed recommended way to export data to Excel and or CSV? If so, great. If not, can you offer up what you feel is a preferred mechanism for exporting to Excel? Th