Re: Setting content type in decorator JSP
Scott Farquhar <[email protected]> Fri, 22 Apr 2005 07:49:18 +1000
| Newsgroups | gmane.comp.web.sitemesh.general |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 21, 2005 at 11:59:35AM -0500, skaffman wrote: > I'm trying to set up Sitemesh to force all decorator pages to send a content type of "application/xhtml+xml" to the browser. > > My decorator JSP has the following declaration: > > <%@ page contentType="application/xhtml+xml" %> > > However, the browser is still being sent "text/html" as the content type, so this approach doesn't seem to do what I'd expect. > > Should this be working, and if not, what's the correct approach? As far as I know, you can't reset the content type after you have already either: - set it once - started writing to the outputstream Which application server are you using? Cheers, Scott --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]