In your JSP page, use

(JSP 1.0 syntax)

<%@ page import = "CLASSNAME" %>

where CLASSNAME is the absolute name of the class that you actually use
in the JSP page (instead of the name of the jar file)
e.g.
<%@ page import = "com.foo.bar" %>

The other thing you need to do is add 'blah.jar' to your JSP engine's
CLASSPATH.

hope this helps,
-isa

]MIME-Version: 1.0
]Date: Mon, 11 Oct 1999 14:12:44 -0700
]From: Dan Simser <[EMAIL PROTECTED]>
]Subject: Help importing a jar file into a JSP file.
]To: [EMAIL PROTECTED]
]
]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

Reply via email to