如何在jsp应用程序中引用外部jar? [英] how to reference an external jar in jsp app?
本文介绍了如何在jsp应用程序中引用外部jar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我把iText.jar文件放在参考库文件夹中,但是当我运行jsp时,我收到了在iText中定义的类Document的错误消息, jar不能
解决。
解决方案
- 在WEB-INF / lib 中添加jar
<在您的JSP顶部添加
<%@ page import =com.lowagie.itext.Document%>
(或任何包) li>
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 message that the class Document defined in the iText,jar can't not be resolved.
解决方案
- Add the jar in WEB-INF/lib
- add
<%@ page import="com.lowagie.itext.Document" %>
(or whatever the package is) to the top of your JSP
这篇关于如何在jsp应用程序中引用外部jar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文