Yes you can. But once you have set the mime type, or content type, I don't believe you can change it again. (Just a warning...)
In Maverick 2.0 there is a null view type. It has been added to source control, but not into a distribution yet. So you will need to get it from cvs and build it, to use it. We are very close to pushing out the 2.0 Release of maverick. We were actually going to do it yesterday... :) Maybe it would be interesting to add an example that sends back binary data (like a jpg) using the view null. HTM, Scott -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gerald de Jong Sent: Monday, March 18, 2002 3:08 AM To: maverick Subject: Re: [Mav-user] Send file in your controller you can call getResponse(), i believe. On Monday 18 March 2002 12:00, Jordan C N Chong wrote: > Dear Gerald > > Thanks for your help :) > > But, I wonder, could I get the HttpServletResponse (from that I can set the > output stream and also like you said, to set the MIME header...) from the > Maverick?? > > Thank you. > > > Best regards, > -------------------------------------------- > Jordan Cheun Ngen, Chong > INF-4067 Universiteit Twente > Postbus 217 > 7500 AE Enschede > The Netherlands > > Distributed and Embedded Systems (DIES) > -------------------------------------------- > Office Phone: +31 53 4894655 > Web site: http://www.cs.utwente.nl/~chong > Email Add.: [EMAIL PROTECTED] > ============================================ > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Gerald de Jong > > Sent: Sunday, March 17, 2002 1:15 PM > > To: maverick > > Subject: Re: [Mav-user] Send file > > > > > > Jordan, > > > > (don't i know you from somewhere? :) > > > > i think you will have to set the MIME type of the response so that the > > browser triggers the download dialog. > > > > On Sunday 17 March 2002 01:09, Jordan C N Chong wrote: > > > Dear Maverick experts :) > > > > > > I wish to enable users download files by using Maverick, but not using > > > links. For example, when a button is click, what should I do on Maverick > > > codes, to enable file dowloading/sending? > > > > > > Please help. Thank you very much. > > > > > > > > > Best regards, > > > -------------------------------------------- > > > Jordan Cheun Ngen, Chong > > > > -- > > Beautiful Code BV > > Rotterdam, The Netherlands > > http://www.beautifulcode.nl > > > > _______________________________________________ > > Mav-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/mav-user > > > > > -- Beautiful Code BV Rotterdam, The Netherlands http://www.beautifulcode.nl _______________________________________________ Mav-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mav-user _______________________________________________ Mav-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mav-user
