Do instantiate a bean with:
<%@ import="/webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class" %>
LMK
-----Original Message-----
From: Kevin Sangeelee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: Re: BY ANY BEANS NECESSARY!
On Wed, 28 Mar 2001, Arif Tayebali wrote:
> Does anyone know where to place JavaBeans in Tomcat??
> And how do I reference these Beans from JSP pages??
> And are these beans are to be saved as .class files??
>
Make sure your beans are in a package, and that they are instantiated on
the JSP page using their fully qualified name: -
.../webapps/myapp/WEB-INF/classes/com/mydomain/TimeBean.class
and ... class="com.mydomain.TimeBean" ... in the useBean tags.
Remember to add a corresponding package directive at the top of your bean
code. That's all there is to it.