Hi, Ron.
This is because Tomcat puts the servlets generated from JSP's in the
org.apache.jsp package. Therefore, when you reference your bean with no
package specified, it looks for it in this package and does not find it there.
You should see that as part of the error message - something like "Cannot find
class org.apache.jsp.YourBean".
Hope that clears things up.
-Jeff
"Ron Day"
<ronday@ronda To: <[EMAIL PROTECTED]>
y.cc> cc:
Subject: Beans in packages vs beans not
in packages
07/10/02
05:20 PM
Please
respond to
"Tomcat Users
List"
Hi,
When I run a webapp with a bean in a package -- say "com.form", everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.
1)I am using usebean in both cases, one has class name, one has full package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.
There are no other changes, except to recompile bean, and restart tomcat.
Any help appreciated.
ron
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
