Place the needed jar files in your WEB-INF/lib directory, the server should
pick them up automatically.
(*Chris*)
----- Original Message -----
From: "Gardner Monte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 15, 2002 11:59 AM
Subject: [JSP-INTEREST] Importing my Own class
> I rent space on a commercial Tomcat JSP-Enabled server.
> I have a JSP page in the directory
> /usr50/home/mgardne/public_html/jsp/pictures.jsp
>
> I have a Class file in the directory
>
> /usr50/home/mgardne/public_html/servlets/ScrapBook.class
>
> The ScrapBook class is not part of any package.
>
> I would like to import the ScrapBook class into my JSP code
> so that I can instantiate objects of that type. In the
> Archives someone stated that you could import a class file
> by using the actual path like this
> <%@ page import="/usr50/home/mgardne/public_html/servlets/ScrapBook" %>
>
> but when I tried to run that code I got an error.
>
> My web host provider generally doesn't let me change class path settings,
> or put my own classes in the class path, so I was wondering if there
> was a direct way of telling the JSP engine where my class file is located.
>
> --Monte Glenn Gardner
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://archives.java.sun.com/jsp-interest.html
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.jsp
> http://www.jguru.com/faq/index.jsp
> http://www.jspinsider.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com