AFAIK, you can't import a jar file in a JSP. The jar file must exist either
on the servlet engine's classpath or specified somewhere in the servlet
engine's configuration to be in its classpath. Import statements are for
name-resolution only. The following code snippets llustrate two ways of
accessing a class that resides in a jar that happens to be (actually, MUST
be) on the classpath :
----------------------------------------
x = new foo.bar.util.Widget();
----------------------------------------
import foo.bar.util.*; // note you could say "import foo.bar.util.Widget"
...
x=new Widget();
----------------------------------------
Hope this helps,
Brien Voorhees
----- Original Message -----
From: Dan Simser <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 11, 1999 2:12 PM
Subject: Help importing a jar file into a JSP file.
> Hey,
>
> Just wondering what the correct syntax is to import a blah.jar file into a
> *.jsp file?
> I keep getting a "class blah not found to import." error.
> Here is what I currently am trying:
> <%@ import = "blah" %>
> I have also tried:
> <%@ import = "blah.jar" %>
> <%@ page import = "blah" %>
> <%@ page import = "blah.jar" %>
>
> Any help will be useful.
>
> Daniel Simser
> Internet Development
> [EMAIL PROTECTED]
> Whitehorse Studios
> 4640 SW Macadam Ave. Suite 100
> Portland, OR 97201
> 503.471.4200
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html