Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread klute
Bill and Dennis, Thanks a lot for the info. VERY helpful! James --- http://www.devbistro.com --- Bill Siggelkow <[EMAIL PROTECTED]> wrote: > Ooh ... I was just reminded that the values between > the commas should be > quoted in case there are internal commas ... > > > out.write("\"Ev

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread Bill Siggelkow
Ooh ... I was just reminded that the values between the commas should be quoted in case there are internal commas ... out.write("\"Every\",\"good\",\"boy\",\"does\",\"fine\"\r\n"); out.write("\"face\",\"in\",\"the\",\"space\",\"dude\"\r\n"); Bill Siggelkow wrote: Try something like

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread Bill Siggelkow
Try something like this little servlet: import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class CsvServlet extends

Re: OT: exporting data as .csv in Struts webapp

2004-07-07 Thread DGraham
My suggestion is to get the source for displayTag (http://displaytag.sourceforge.net) and look at TableTag.doExport() and CsvView. Dennis klute <[EMAIL PROTECTED]> 07/07/2004 10:28 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To Struts Users Mailing List <[E