Conversion de page jsp en pdf

Solved
haikei00X Posted messages 78 Status Membre -  
haikei00X Posted messages 78 Status Membre -
Hello everyone.
I’m working on a Java EE application and I need to print the result of a SQL query that I display in a table on a JSP page in PDF format (by clicking on an "print" button).
I was advised to use iText or Jasper Reporting.
I started by trying iText and I think I made a mistake.
Indeed, I downloaded iText then imported the jar into my project library, after which I changed my mind, removed iText, and downloaded a more recent version. But when I launch my application on Tomcat I get an exception that says "java.lang.NoClassDefFoundError: com/itextpdf/text/Element". I did some research and most say it’s because I have another iText jar in my CLASSPATH (which is probably the old one I deleted).
I checked the CLASSPATH file, but I only found the latest iText. Here’s a screenshot:

Is there another CLASSPATH file where I should check?
Or is that not the problem at all?
I’m really lost, please help me.
Thank you in advance ^^

1 réponse

haikei00X Posted messages 78 Status Membre 3
 
The problem is solved.
Actually, I just needed to add the jar in the lib folder under WEB-INF.
I had only placed it in the classpath.
0