Hi,
You put the Bean under the classes directory (if you don't use package ) and
the jsp under ROOT directory
Connie
> -----Original Message-----
> From: Huiyuan Ma [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 12, 2001 2:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Beans with Tomcat 3.2.1
>
>
> --- "Wong, Connie" <[EMAIL PROTECTED]> wrote:
> > Rick,
> >
> > Try to set the CLASSPATH up to WEB-INF\classes and
> > <jsp:useBean id="mytestbean"
> > class="icegroup.beans.MyBean"/>
> >
> > Noticed that you have a lowercase of usebean. I
> > should be capital useBean.
> > I hope that help.
> >
> > Connie,
> >
> >
> > > -----Original Message-----
> > > From: Rick Palmer [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, March 12, 2001 1:31 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Beans with Tomcat 3.2.1
> > >
> > > Please help,
> > >
> > > Have installed Tomcat 3.2.1 successfully on W2K
> > and all examples
> > > work fine. JSPs and servlets that we create also
> > are hunky dory.
> > >
> > > The problem - beans do not work for me.
> > >
> > > I reference the bean in the JSP in the usual way
> > (have tried
> > > it with and without the import):
> > >
> > > <%@ page import = "icegroup.beans.MyBean" %>
> > > <jsp:usebean id="mytestbean"
> > class="icegroup.beans.MyBean"/>
> > >
> > > <jsp:getProperty name="mytestbean"
> > property="mystring"/>
> > >
> > > The error that results when I run the JSP is:
> > > org.apache.jasper.JasperException: Attempted a
> > bean operation on a
> > > null object.
> > >
> > >
> > > I have the bean class in my WEB-INF\classes
> > directory (have also
> > > tried it in WEB-INF\classes\icegroup\beans).
> > Have also tried
> > > setting the CLASSPATH directly to the class
> > folder in the Tomcat
> > > startup script. ( The bean code is shown below
> > for completeness. )
> > >
> > > I have been digging into docs and forums for a
> > couple of days
> > > on this one so your ideas and help are greatly
> > appreciated.
> > >
>
> My problem is quite similar. The bean class couldn't
> be loaded either when I put it into
> webapps\ROOT\WEB-INF\classes\CORE or
> webapps\examples\WEB-INF\classes\CORE. And I have set
> the classpath for them. I'm using tomcat 3.2.1.
> Where do you guys put the bean classes? Thanks!
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]