From: Christian C. <chr...@gr...> - 2003-10-15 13:52:10
|
Ok, so here's what I've discovered. If I use the svg encoder to write to a file, it works fine. So I know that my svg generation is functional. When I try to open that file in the IE, I get prompted once and after that it seems to show up. So that prompt explains why the connection was being reset, I assume. In Mozilla Firebird 0.6.1, I also get prompted to open with the default viewer - if I say Y, it launches IE and displays the image there. So the image seems to be generating correctly. The question seems to be then - how do I get the browser to automatically display it? Is there a plugin that must be manually downloaded and installed? Christian ---------------------------------------------- Christian Cryder Internet Architect, ATMReports.com Project Chair, BarracudaMVC - http://barracudamvc.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" > -----Original Message----- > From: jch...@li... > [mailto:jch...@li...]On Behalf Of Nathaniel > G. Auvil > Sent: Wednesday, October 15, 2003 9:09 AM > To: jch...@li... > Subject: Re: [jCharts-users] (no subject) > > > > Can you create a SVG formatted chart outside of thte Servlet Container? > > > --- Christian Cryder <chr...@gr...> wrote: > > So I have taken the one example I have working (Pie Chart) and tried to > > render it in SVG format. I took the SVG jars from jCharts-0.7.4\lib and > > plunked them into Tomcat's shared/lib and now then changed my call from: > > ServletEncoderHelper.encodePNG(chart, context.getResponse()); > > to: > > ServletEncoderHelper.encodeServlet(chart, context.getResponse()); > > > > Kabowie: > > > > error encoding chart:org.apache.batik.svggen.SVGGraphics2DIOException: > > Connection reset by peer: socket write error > > org.apache.batik.svggen.SVGGraphics2DIOException: Connection > reset by peer: > > socket write error > > at org.apache.batik.svggen.XmlWriter.writeXml(Unknown Source) > > at org.apache.batik.svggen.SVGGraphics2D.stream(Unknown Source) > > at org.apache.batik.svggen.SVGGraphics2D.stream(Unknown Source) > > at org.jCharts.encoders.SVGEncoder.encode(SVGEncoder.java:103) > > at > > > org.jCharts.encoders.ServletEncoderHelper.encodeServlet(ServletEnc > oderHelper > > .java:76) > > > > Anyone have any suggestions here? I am running on Win2k, > j2sdk1.4.2_01, with > > Tomcat 4.1. > > > > tia, > > Christian > > ---------------------------------------------- > > Christian Cryder > > Internet Architect, ATMReports.com > > Project Chair, BarracudaMVC - http://barracudamvc.org > > ---------------------------------------------- > > "Coffee? I could quit anytime, just not today" > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > SourceForge.net hosts over 70,000 Open Source Projects. > > See the people who have HELPED US provide better services: > > Click here: http://sourceforge.net/supporters.php > > _______________________________________________ > > jCharts-users mailing list > > jCh...@li... > > https://lists.sourceforge.net/lists/listinfo/jcharts-users > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users |