tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: JavaBean problem
Date Wed, 29 Jan 2003 15:14:14 GMT

That's what I meant.  I just wrote it confusiingly mixing directory 
structure ( "/" ) with periods ( "." ).  Sorry for the confusion.

Jake

At 07:08 AM 1/29/2003 +0000, you wrote:
> >> So, instead of WEB-INF/classes/MyBean, it would be something like
>WEB-INF/classes/com.mypackage.MyBean <<
>
>What works for me is:
>
>MyBean:
>     (declaration at top of bean class file)
>     package com.mypackage;
>
>Directory structure:
>     WEB-INF
>         => classes
>             => com
>                 => mypackage
>                     => MyBean
>
>Note that the package declaration uses fullstops ("periods" in American) and
>the directory path has a separate directory for "com" and "mypackage", the
>bean residing in the latter.
>
>Does
>     WEB-INF
>         => classes
>             => com.mypackage
>                 => MyBean
>
>also work?
>
>Regards,
>
>Wilson (newbie)
>
>----- Original Message -----
>From: "Jacob Kjome" <hoju@visi.com>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Sent: Wednesday, January 29, 2003 4:34 AM
>Subject: Re: JavaBean problem
>
>
> >
> > Is the bean in an actual defined package or the default package (no
> > package).  It *must* be in a package.  So, instead of
> > WEB-INF/classes/MyBean, it would be something like
> > WEB-INF/classes/com.mypackage.MyBean
> >
> > Now import the com.mypackage.MyBean bean into your jsp.  Things should
>work
> > better now.
> >
> > Jake
> >
> > At 05:38 PM 1/28/2003 -0800, you wrote:
> > >I have just created and compiled my first JavaBean
> > >into <tomcat-install>\webapps\ROOT\WEB-INF\classes and
> > >am tying to access it from a jsp page in
> > ><tomcat-install>\webapps\ROOT directory. I am getting
> > >jsp compile errors because the jsp page cannot find
> > >the class defined in the JavaBean.
> > >
> > >Any help would be appreciated. My version of tomcat is 4.1.18.
> > >
> > >__________________________________________________
> > >Do you Yahoo!?
> > >Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > >http://mailplus.yahoo.com
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message