Thanks Jon,

Now it can find "Fruit.class"

but now I get:

"org.apache.jasper.JasperException: Cannot create bean of class Fruit"

I was trying to copy verbatim from "JSP: Weekend Crash Course", but the book seems 
hopelessly flawed.

Anyone know of a good book that explains Tomcat and JSP for those never exposed to the 
technology before?

Thanks again,

> -----Original Message-----
> From: Jon Wingfield [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 10 March 2004 10:48 p.m.
> To: Tomcat Users List
> Subject: Re: webapps\ROOT\WEB-INF\classes
> 
> 
> I'm fairly certain classes deployed to 
> <web-app>\WEB-INF\classes have to 
> be in packages.
> So your Fruit class should be deployed to 
> <web-app>\WEB-INF\classes\com\stevensons
> if the Fruit class is in the com.stevensons package.
> 
> In your jsp you also MUST import the class you want to use. eg:
> <%@ page import="com.stevensons.Fruit" %>
> 
> see the following (non-exhaustive) list for more details:
> http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
> http://www.jcp.org/aboutJava/communityprocess/final/jsr154/
> 
> HTH,
> 
> Jon
> 
> 
> Colin McKinstry wrote:
> > I've tried setting the class_path to <tomcat 
> install>\webapps\ROOT\WEB_INF\classes in the Windows 
> environment variables, but that hasn't improved matters :-(
> > 
> > Anyone got any ideas?
> > 
> > 
> >>-----Original Message-----
> >>From: Wendy Smoak [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, 10 March 2004 8:57 a.m.
> >>To: Tomcat Users List
> >>Subject: RE: webapps\ROOT\WEB-INF\classes
> >>
> >>
> >>
> >>>From: Colin McKinstry [mailto:[EMAIL PROTECTED] 
> >>>The only thing I've done configuration wise is define 
> >>>CATALINA_HOME & base. I also had to create the classes 
> >>>directory in WEB-INF since it wasn't there.
> >>
> >>Did you restart after creating the 'classes' directory and 
> >>putting your
> >>class in it?  AFAIK, Tomcat builds its classpath at 
> startup, so if the
> >>directory wasn't there then, it might not be seeing the 
> contents now.
> >>
> >>-- 
> >>Wendy Smoak
> >>Application Systems Analyst, Sr.
> >>ASU IA Information Resources Management 
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to