George:
When you put the bean class files in the WEB-INF/classes dir, they are automatically in the CLASSPATH. You don't have to do anything special.
Having said that, when you put bean classes in the WEB-INF/classes, the whole
Java world knows that these are beans without any package stmts, right!
Now there is a sticky thing with no-package bean classes....
. When you use bean without a package stmt, the App Server will look for the bean class in the
same package as that of the generated
Servlet code. And we don't know what package the generated servlet code is, so generally the
JSP fails.
Bottomline, put your beans in a package and then access them. Ofcourse in this case you will put the bean class files in the WEB-INF/classes/mycom/mypackage/ directory which reflects the package stmt in your bean class.
Good luck.
- satya