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
uts Users Mailing List <[EMAIL PROTECTED]> cc Subject OT: exporting data as .csv in Struts webapp Hi All, I am looking for some best practices advice on handling this task: I have a web application (written in Struts) that talks to some database. A browser user will be able user

OT: exporting data as .csv in Struts webapp

2004-07-07 Thread klute
Hi All, I am looking for some best practices advice on handling this task: I have a web application (written in Struts) that talks to some database. A browser user will be able user to export tabular data from the db in a comma delimited file and get a save as dialog box prompting to name the re