org.apache.jasper.JasperException: Impossible de compiler la classe pour la JSP:
An error occurred at line: 6 in the generated java file
Only a type can be imported. com.FlashInfo.model.TAbonne resolves to a package
Une erreur s'est produite à la ligne: 14 dans le fichier jsp: /listeUtilisateurs.jsp
AbonneService cannot be resolved to a type
11: </head>
12: <body>
13: <% ClassPathXmlApplicationContext context;
14: AbonneService abonneService;
15: context = new ClassPathXmlApplicationContext("application-context.xml");
16: abonneService = (AbonneService) context.getBean("abonneService");
17: List<TAbonne> listeUtilisateurs = abonneService.findAll();
Une erreur s'est produite à la ligne: 16 dans le fichier jsp: /listeUtilisateurs.jsp
AbonneService cannot be resolved to a type
13: <% ClassPathXmlApplicationContext context;
14: AbonneService abonneService;
15: context = new ClassPathXmlApplicationContext("application-context.xml");
16: abonneService = (AbonneService) context.getBean("abonneService");
17: List<TAbonne> listeUtilisateurs = abonneService.findAll();
18:
19: System.out.println("<p>{ \"Utilisateurs\" : [");
Une erreur s'est produite à la ligne: 17 dans le fichier jsp: /listeUtilisateurs.jsp
TAbonne cannot be resolved to a type
14: AbonneService abonneService;
15: context = new ClassPathXmlApplicationContext("application-context.xml");
16: abonneService = (AbonneService) context.getBean("abonneService");
17: List<TAbonne> listeUtilisateurs = abonneService.findAll();
18:
19: System.out.println("<p>{ \"Utilisateurs\" : [");
20: for(int i=0;i<listeUtilisateurs.size();i++)
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:356)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Partager