[jdom-interest] ServletInputStream

Corcos Igal CorcosI at BanqueLaurentienne.ca
Tue Jun 5 13:01:59 PDT 2001


Hi,

I am trying to use the following code to build a Document object using
SAXBuilder in a servlet:

	SAXBuilder builder = new SAXBuilder(true);
	Document doc = builder.build(request.getInputStream());

However, this does not seem to work since when I output the doc object using
XMLOutputter, I get an empty string.

Is there something special about ServletInputStreams which would cause the
build(InputStream in) method to not function properly?
Is there another way around this problem?

Thanks.
-Igal



More information about the jdom-interest mailing list