how to reference an external jar in jsp app?

前端 未结 3 1944
小鲜肉
小鲜肉 2020-12-31 23:29

I am new to Eclipse. I am trying to run a jsp example using iText to generate a PDF, I put iText.jar file in Referense Library folder, but when I ran the jsp, I got error m

3条回答
  •  Happy的楠姐
    2021-01-01 00:23

    1. Add the jar in WEB-INF/lib
    2. add <%@ page import="com.lowagie.itext.Document" %> (or whatever the package is) to the top of your JSP

提交回复
热议问题