This may not be the only or best way to do this but I put my jar files in
WEB-INF/lib directory where my webapp is. Then in the jsp at the top I put
this line:
%@ page import=java.util.*, esg.b3.* errorPage=error.jsp %
and it works for me.
Regards,
Drew
-Original Message-
From: Brian
I would tell you to put the jar file under WEB-INF/lib/ under your webapplication.
This means the jar file along with all it's classes and what ever is in it, is in the
classpath.
Now, I don't kow what is inside the jar file (might be some javabeans as well as
servlets).
If I was you, I
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
If it's a class or group of classes, /WEB-INF/classes.
If it's a JAR file, /WEB-INF/lib.
John
-Original Message-
From: Brian O. Bozarth [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 10:50 AM
To:
Having trouble using this jar file which has code for an Equifax interface (credit
check). I've been given a jar file with sample
code. Where do I put in the tomcat directory and how do I reference it in a jsp
page? Do I need to do anything on the
server to configure?
The package is
okay I put the jar file in /tomcat/webapps/ROOT/WEB-INF/lib (I had to actually create
the lib folder)
I used this in my jsp page.
%@ page import=com.equifax.rcas.*%
getting an error of:
/web1/labwerks/tomcat/work/Standalone/localhost/_/dev/credit_check_jsp.java:7: package
com.equifax.rcas
Have you tried changeing the import to com.equifax.rcas.tools.*?
-Original Message-
From: Brian O. Bozarth [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 11:21 AM
To: Tomcat Users List
Subject: RE: How do I install a jar file and reference it with a jsp
page? (Next problem)
yeah getting the same error. Here's the full description.
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
Read up about how CLASSPATH works for .jar files as well as for normal
directory structures, which are reflected in a jar file. If you cannot
reach something in a normal directory (outside the .jar file) you sure
cannot inside a .jar file. For example, in a normal directory structure,
you