I think, you need to put a hiperlink or a button for start your action. Then you need to retrieve the data from the db, generate the csv Stream or File as you wish to call it. Then the only diference between a Servlet.doGet method an Action.execute method is 2 parameters ActionMapping and ActionForm, then you need to put the Roberts example source code.
If you need more details go to this URL: http://wiki.apache.org/struts/StrutsFileDownload Are you using struts 1.X or 2.X???? 2008/12/15 Dave Newton <newton.d...@yahoo.com> > --- On Mon, 12/15/08, elyes sallem wrote: > > do you have an other solution? the html:file doesn't > > work for saving a new file > > Stream the result (a servlet example was given, it's the same for an > action-you just return null instead of an ActionForward). The *BROWSER* > opens a "save as" dialog box. > > <html:file...> is a form tag. For sending form data. It doesn't have > anything to do with downloading files. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >