RE: DefaultDOMWriter

"Christian Cryder" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
> I wonder if that code shouldn't be removed entirely?

My gut feeling on this is that it really _should_ be setting the content
type to something (notice how it differentiates between HTML and XML).

I'd like to get more info on exactly what Srini is trying to do first,
however, before I can really formulate a plan.

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 Jacob Kjome
> Sent: Monday, August 04, 2003 3:54 PM
> To: [email protected]
> Subject: Re: [Barracuda] DefaultDOMWriter
>
>
> Hi Srini,
>
> At 02:22 PM 8/4/2003 -0700, you wrote:
>
> >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.
>
> It is a good question.  I have a question for you.  Why would you use a
> content type of "application/excel" for "html content".  if it is "html",
> then it isn't an excel document.  Well, I'm probably missing some
> details.  That said, I think you are right.   Overriding the content type
> in DefaultDOMWriter is probably not a good idea.  I wonder if that code
> shouldn't be removed entirely?  Would this cause any problems for
> anyone?  I can imagine i might, but I'd like to hear opinions from others.
>
> Jake
>
> _______________________________________________
> Barracuda mailing list
> [email protected]
> http://barracudamvc.org/lists/listinfo/barracuda
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.