list4xt : Mailing list for the XT users community.
[list4xt] Re: Eric: response.setContentType("text,vnd.wap.xml")
Subject: [list4xt] Re: Eric: response.setContentType("text,vnd.wap.xml")
From: guy (guy@polylab.sfu.ca)
Date: 06/12/2000 - 02:04
Thanks once again for your help
:)
Guy
Eric van der Vlist wrote:
> Guy,
>
> guy wrote:
> >
> > Eric,
> > As to your second suggestion, to modify XMLOutputHandler, can I write a class
> > that will override the
> > this.out = dest.getOutputStream("application/xml", null);
> > with
> > String mediaType = atts.getValue("media-type");
> > and I assume
> > this.out = dest.getOutputStream(media -type, null);
> > so I don't have to modify XMLOutputHandler or use you whole XHTMLOutputHandler?
>
> In theory, you should be able to do this... however, in practice you'll
> see that many properties and method of the XMLOutputHandler are defined
> as private and/or final and that you won't be able to derive much from
> this class.
>
> The easiest way is therefore to copy the XMLOutputHandler.java file,
> replace the "package com.jclark.xsl.sax;" by a "import
> com.jclark.xsl.sax.*;", do your modifications and use it through the
> java extension as shown from the XHTMLOutputHandler.
>
> Eric
> --
> See you at XML 2000
> http://gca.org/attend/2000_conferences/XML_2000/building.htm#vlist
> ------------------------------------------------------------------------
> Eric van der Vlist Dyomedea http://wewantpeace2012.org
> http://merchantservicesnewjersey.com - http://collectionagencyservices.net http://adultlovecompass.com
> ------------------------------------------------------------------------
>
> --
> Mailing list for the XT users community. (http://higheredtechsummit.com)
> (mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
--
Mailing list for the XT users community. (http://startingoverstrong.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
Archive générée par hypermail 2b28 le 25/04/2001 - 07:16 CEST
webmaster@4xt.org
|