RE: DefaultDOMWriter
"Christian Cryder" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hmm...good question. It'd be relatively easy to add a setContentType(String contentType) method to the DefaultDOMWriter, but I wonder if there are other approaches we should consider instead? Has anyone else run into the need to do this? I would have assumed that if you were returning non html you wouldn't be using the DefaultDOMWriter...are you saying that you are somehow loading and processing the Excel file as a DOM? Or are you just needing to pass back the excel file in certain cases? If the latter is the case, I'd just bypass the DOMWriter altogether and pass the file back directly; then you could set the content type without any problems and you wouldn't even need to muck with the DOM writer. Please give us more info... Christian ---------------------------------------------- Christian Cryder Internet Architect, ATMReports.com Project Chair, BarracudaMVC - http://barracudamvc.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Srinivas Yermal > Sent: Monday, August 04, 2003 3:23 PM > To: [email protected] > Subject: [Barracuda] DefaultDOMWriter > > > > In the write method of DefaultDOMWriter, the content-type is set without > regards to what was set before. In my application, I provide a excel > download using html content. So I need to set the content-type to > application/excel for some html documents that I spit out. Does anybody > have any suggestions? > Sorry if this question has already been asked. Please point me in the > right direction. > > Thanks, > Srini. > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda