http://developer.java.sun.com/developer/bugParade/bugs/4034167.html I saw this bug report, not sure how releavant it is to your problem, but it could cause problems. Apparently on many JVMs, (though not all) a class in a package cannot access a class in the default package. I tried three VMs with a test case, and it worked fine on one of them but I got errors on the other one. You'll notice that Sun's recommended fix is to move your class into a package (unfortunately in my case I was dealing with a 3rd party class)
-----Original Message----- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 2:09 PM To: Struts Users Mailing List Subject: RE: Do I have to set a classpath? If so, how? 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]