[opencms-dev] response.setContentType("text/xml")
Alexander Kandzior
alex at opencms.org
Thu Jan 22 15:03:02 CET 2004
The rc2 "fix" was not working and in fact introduced other problems bigger
then the ones it was supposed to solve. The deepdown reason for the issue is
that in an OpenCms JSP cms:include scenario every included JSP element will
set it's own content type to "text/html", overwriting the content type you
might already have set.
A quickfix soulution would be to introduce a
CmsJspActionElement.setResponseContentType(String) method. A soultion that
implements the standard is also possible (I belive), but more time -
consuming.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org] On Behalf Of Oppermann, Joerg
> Sent: Thursday, January 22, 2004 2:44 PM
> To: opencms-dev at opencms.org
> Subject: WG: [opencms-dev] response.setContentType("text/xml")
>
>
> Hi,
>
> I tried response.setContentType in jsp with opencms version
> 5.0 and it does not work.
> I checked cvs and found that the problem was fixed in
> CmsFlexResponse for opencms rc2 but was build in again for
> the release build.
>
> Joerg
>
> -----Ursprungliche Nachricht-----
> Von: Olli Aro [mailto:olli_aro at yahoo.co.uk]
> Gesendet: Mittwoch, 12. Marz 2003 09:01
> An: opencms-dev at www.opencms.org
> Betreff: RE: [opencms-dev] response.setContentType("text/xml")
>
>
> Good news:)
>
> Thanks Nico - I will do an upgrade.
>
> Olli
>
> > -----Original Message-----
> > From: owner-opencms-dev at www.opencms.org
> > [mailto:owner-opencms-dev at www.opencms.org]On Behalf Of Nico Krause
> > Sent: 11 March 2003 19:41
> > To: opencms-dev at www.opencms.org
> > Subject: Re: [opencms-dev] response.setContentType("text/xml")
> >
> >
> > this was fixed in RC2!
> >
> > had the problem also...
> >
> > Nico
> >
> > Olli Aro schrieb:
> >
> > >Hi all,
> > >
> > >I am trying to set the content type for my jsp file in
> version 5 rc1
> > >to text/xml with response.setContentType("text/xml"), but
> the server
> > >header stays text/html. Is it a bug or am I doing something wrong?
> > >
> > >Regards,
> > >
> > >Olli
> > >
> > >
> >
> >
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
More information about the opencms-dev
mailing list