RE: upload files

2002-07-29 Thread Dan Petrie
Hi Christian, Simply use the request object passed into the Action's perform/execute method, set the content type, write whatever data is necessary, and return null (no ActionForward). -Dan- -Original Message- From: Christian Pich [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002

RE: upload files

2002-07-29 Thread Bichiko, Dmitri
you can set the content type from within the JSP page: response.setContentType(application/vnd.ms-excel) for the file name: response.setHeader(Content-Disposition,attachment; filename=myfile.xls;) Dmitri -Original Message- From: Christian Pich [mailto:[EMAIL PROTECTED]] Sent:

Re: upload files

2002-07-29 Thread Christian Pich
Well, I did that before without the struts framework and ran into problems: I am working in frames so when I try to output specific contents then it always defaults the contents to the frame source file contents. Also, it would not allow me to set the default file name correctly. Can I do it

RE: upload files

2002-07-29 Thread Daniel Joshua
you a pop up message box asking to Save, Open, etc. Instead of 'attachment' you can also use 'inline'. Regards, Daniel -Original Message- From: Christian Pich [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 4:26 AM To: Struts Users Mailing List Subject: Re: upload files Well, I