[jdom-interest] [jdom-announce] jsp and XMLOutputter
Kesav Kumar
kesavk at voquette.com
Wed Oct 25 12:14:45 PDT 2000
How do you expect your browser showup XML file? If you really want to
display XML on your browser change your content-type to text/xml then if
your browser supports xml MIME type it will display XML file.
Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:kesavk at voquette.com
http://www.voquette.com
-----Original Message-----
From: Sibon Barman [mailto:sibon at ss8networks.com]
Sent: Wednesday, October 25, 2000 6:50 AM
To: jdom-interest; jdom-announce
Subject: [jdom-interest] [jdom-announce] jsp and XMLOutputter
I tried to print out my generated XML content using jsp pages's out object
but I don't seem to get anything. I am using the following jsp scriplet:
<%
SLPBuilder builder = new SLPBuilder(model);
org.jdom.Document doc = new SLPBuilder(model);
XMLOutputter fmt = new XMLOutputter(" ", true);
fmt.output(doc, out);
%>
A blank screen shows up.
But if I changed the scriplet to
<%
SLPBuilder builder = new SLPBuilder(model);
org.jdom.Document doc = new SLPBuilder(model);
XMLOutputter fmt = new XMLOutputter(" ", true);
fmt.output(doc, System.out);
%>
then the correct output shows up in the DOS screen. The jsp engine is from
Weblogic running inside the WebLogic Application Server 5.1.
Any help would be appreciated --- all I want to do is to be able to show the
XML output dynamically through a webpage.
Thanks,
Sibon.
_______________________________________________
To control your jdom-announce membership:
http://lists.denveronline.net/mailman/options/jdom-announce/youraddr@yourhos
t.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
More information about the jdom-interest
mailing list