RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Peter Crowther
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

Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread David Smith
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

Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread lrvberg
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

RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Caldarale, Charles R
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

RE: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Peter Crowther
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

Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread Mikolaj Rydzewski
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

Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread David Smith
[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

Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread 李睿
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

Re: How can JSP use the .jar file out of Tomcat's Home ?

2009-03-12 Thread 李睿
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