[jdom-interest] [jdom-announce] jsp and XMLOutputter
Kesav Kumar
kesavk at voquette.com
Wed Oct 25 12:46:24 PDT 2000
As of now(Till 4.73) Netscape dosen't support displaying XML content. I am
not sure about Netscape 6 I never tried but I heard that it supports XML.
Use XSL to convert XML to HTML unfortuantly JDOM doesn't have XSL support in
its core.
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 12:41 PM
To: Kesav Kumar; jdom-interest
Subject: RE: [jdom-interest] [jdom-announce] jsp and XMLOutputter
It works great with IE 5.5 after setting the content-type to text/xml but I
get an an exception with Netscape 4.7 and Netscape 6 PR3 --- do you have any
remedy for that? Does that mean Netscape can't display XML doc? Is there any
class in jdom that format XML content to HTML content?
Cheers,
Sibon.
-----Original Message-----
From: Kesav Kumar [mailto:kesavk at voquette.com]
Sent: Wednesday, October 25, 2000 3:15 PM
To: 'Sibon Barman'; jdom-interest; jdom-announce
Subject: RE: [jdom-interest] [jdom-announce] jsp and XMLOutputter
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