User (Legacy) Posted December 20, 2005 Report Share Posted December 20, 2005 Hello, I am trying to use the method getHtmlData() to show the chart in a jsp. Background is, that we do not want to create the temp-files. Perhaps anybody has a solution for automatic deleting the temp-files generated from Chart.getHtmlTag. I am using the following code, also with ": <html> <body> <img src=<%=chart1.getHtmlData("450","330","PNG")%>> </body> </html> getting this error: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 36 in the jsp file: /jsp/ext/flex/charts/chartfxLINE.jspGenerated servlet error:C:\Java\Jboss\jboss-4.0.0\server\sdwhpoc\work\jboss.web\localhost\dwh\org\apache\jsp\jsp\ext\flex\charts\chartfxLINE_jsp.java:91: 'void' type not allowed here out.print(chart1.getHtmlData("450","330","PNG")); Link to comment Share on other sites More sharing options...
Software FX Posted December 20, 2005 Report Share Posted December 20, 2005 Hi, The getHtmlData does not return anything, it writes directly to the outputstream. The correct way to use it is by setting the image src to a .jsp that calls the getHtmlData method. Attached is a sample, which is included with the product (in the Misc folder). Regards, GA "Martin Schmitz" <info@mp3hifi.de> wrote in message news:oVwA6qZBGHA.280@webserver3.softwarefx.com... > Hello, > > I am trying to use the method getHtmlData() to show the chart in a jsp. > Background is, that we do not want to create the temp-files. Perhaps > anybody > has a solution for automatic deleting the temp-files generated from > Chart.getHtmlTag. > > I am using the following code, also with ": > > <html> > > <body> > > <img src=<%=chart1.getHtmlData("450","330","PNG")%>> > > </body> > > </html> > > > > getting this error: > > > > org.apache.jasper.JasperException: Unable to compile class for JSP An > error > occurred at line: 36 in the jsp file: > /jsp/ext/flex/charts/chartfxLINE.jspGenerated servlet > error:C:\Java\Jboss\jboss-4.0.0\server\sdwhpoc\work\jboss.web\localhost\dwh\org\apache\jsp\jsp\ext\flex\charts\chartfxLINE_jsp.java:91: > 'void' type not allowed here > out.print(chart1.getHtmlData("450","330","PNG")); > > > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.