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
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:
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
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
4 matches
Mail list logo