dhioo20
Messages postés7Date d'inscriptionsamedi 12 juin 2010StatutMembreDernière intervention27 avril 2012
-
5 avril 2012 à 21:01
pikamo
Messages postés34Date d'inscriptiondimanche 21 mars 2010StatutMembreDernière intervention21 novembre 2012
-
29 août 2012 à 13:41
Bonjour ,
Besoin de votre aide
je travaille sur un projet et j'ai besoin d'afficher des courbes avec JSP
(j'ai deja telechargé et installé Jfreechart)
Voila mon code
org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
An error occurred at line: 21 in the generated java file
Only a type can be imported. org.apache.jsp resolves to a package
Une erreur s'est produite à la ligne: 21 dans le fichier jsp: /jsp/chart.jsp
ChartPanel cannot be resolved to a type
18:
19: dataset.executeQuery(query);
20: JFreeChart chart = ChartFactory.createLineChart("nombre_rejet", "Id", "date",dataset, PlotOrientation.VERTICAL, true, true, false);
21: ChartPanel chartPanel = new ChartPanel(chart);
22: chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
23: ApplicationFrame f = new ApplicationFrame("Chart");
24: f.setContentPane(chartPanel);
Une erreur s'est produite à la ligne: 21 dans le fichier jsp: /jsp/chart.jsp
ChartPanel cannot be resolved to a type
18:
19: dataset.executeQuery(query);
20: JFreeChart chart = ChartFactory.createLineChart("nombre_rejet", "Id", "date",dataset, PlotOrientation.VERTICAL, true, true, false);
21: ChartPanel chartPanel = new ChartPanel(chart);
22: chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
23: ApplicationFrame f = new ApplicationFrame("Chart");
24: f.setContentPane(chartPanel);
Une erreur s'est produite à la ligne: 23 dans le fichier jsp: /jsp/chart.jsp
ApplicationFrame cannot be resolved to a type
20: JFreeChart chart = ChartFactory.createLineChart("nombre_rejet", "Id", "date",dataset, PlotOrientation.VERTICAL, true, true, false);
21: ChartPanel chartPanel = new ChartPanel(chart);
22: chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
23: ApplicationFrame f = new ApplicationFrame("Chart");
24: f.setContentPane(chartPanel);
25: f.pack();
26: f.setVisible(true);
Une erreur s'est produite à la ligne: 23 dans le fichier jsp: /jsp/chart.jsp
ApplicationFrame cannot be resolved to a type
20: JFreeChart chart = ChartFactory.createLineChart("nombre_rejet", "Id", "date",dataset, PlotOrientation.VERTICAL, true, true, false);
21: ChartPanel chartPanel = new ChartPanel(chart);
22: chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));
23: ApplicationFrame f = new ApplicationFrame("Chart");
24: f.setContentPane(chartPanel);
25: f.pack();
26: f.setVisible(true);
pikamo
Messages postés34Date d'inscriptiondimanche 21 mars 2010StatutMembreDernière intervention21 novembre 2012 29 août 2012 à 13:41
salut,
comment t a fais pour afficher chart.jpg ?
car j'ai fais comme toi , et le problème est l’affichage de l'image ancien qui à été générer avant !!
comment tu as résolu ?!
l’emplacement de l'image généré :
C:\Users\user\Documents\loginStruts\web\images
avec loginStruts est le nom du projet
images est d'un dossier dans le projet qui regroupe tout mes images utiles pour l’Application
merci d'avance