First of all, you should set a non-empty package for your class. Certain things won't work correctly if you try to use the default package. Second, you have to have an "import" for your class in the JSP, using a "page" directive with an "import" attribute, perhaps like this (also showing a good convention of having class names start with a capital):
<%@ page import="mypackage.FooManager" %> > -----Original Message----- > From: David Haynes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 04, 2003 11:52 AM > To: [EMAIL PROTECTED] > Subject: Do I have to set a classpath? If so, how? > > Newbie developer here: > > I have a bean (fooManager) that is sitting in the /WEB-INF/classes > space. > I am referencing it in a jsp as <jsp:useBean id="foo" class="fooManager" > scope="session"/> > > When I access the jsp, I get a "Cannot resolve symbol" for fooManager. > > I thought that the classpath was automatically populated with classes > from the /WEB-INF/classes directory. > Do I need to generate a jar? Set up something in the web.xml? > > Details: > Tomcat 4.1, Java 1.4 > > Thanks! > -david- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]