From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
I have to make a JSP invoke a Class which is in a .jar
file out of Tomcat
Home,
How can I deal with it?
Add the jar to the WEB-INF/lib directory of the webapp with the JSP in.
- Peter
lrvb...@gmail.com wrote:
Hi, All,
I have to make a JSP invoke a Class which is in a .jar file out of Tomcat
Home,
How can I deal with it? I have try to add the path of .jar file to system
CLASSPACH, but it seems useless..
Thanks!
Place the jar in the applications WEB-INF/lib
List'
主题: RE: How can JSP use the .jar file out of Tomcat's Home ?
From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
I have to make a JSP invoke a Class which is in a .jar
file out of Tomcat
Home,
How can I deal with it?
Add the jar to the WEB-INF/lib directory of the webapp with the JSP
From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
Subject: Re: How can JSP use the .jar file out of Tomcat's Home ?
For the jar is the core of another running application.
I want to use API in the jar to put stream from the servlet
to the core.
Webapps are intended to be self-contained
From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
Sent: 12 March 2009 13:51
To: 'Tomcat Users List'
Subject: Re: How can JSP use the .jar file out of Tomcat's Home ?
Thanks,
For the jar is the core of another running application.
I want to use API in the jar to put stream from the servlet
lrvb...@gmail.com wrote:
I have to make a JSP invoke a Class which is in a .jar file out of Tomcat
Home,
You need to create new instance of ClassLoader (e.g. URLClassLoader) and
load 'external' jar using it.
You're on right way to shoot yourself in both feet ;-)
--
Mikolaj Rydzewski
[mailto:peter.crowt...@melandra.com]
发送时间: 2009年3月12日 21:35
收件人: 'Tomcat Users List'
主题: RE: How can JSP use the .jar file out of Tomcat's Home ?
From: lrvb...@gmail.com [mailto:lrvb...@gmail.com]
I have to make a JSP invoke a Class which is in a .jar
file out of Tomcat
Home,
How can I deal
the servlet to the core.
Can we keep the jar out of Tomcat's Home?
-邮件原件-
发件人: Peter Crowther [mailto:peter.crowt...@melandra.com]
发送时间: 2009年3月12日 21:35
收件人: 'Tomcat Users List'
主题: RE: How can JSP use the .jar file out of Tomcat's Home ?
From: lrvb...@gmail.com [mailto:lrvb
Thanks :)
On Thu, Mar 12, 2009 at 10:43 PM, Mikolaj Rydzewski m...@ceti.pl wrote:
lrvb...@gmail.com wrote:
I have to make a JSP invoke a Class which is in a .jar file out of
Tomcat
Home,
You need to create new instance of ClassLoader (e.g. URLClassLoader) and
load 'external' jar using