And be advised that you have to recapitulate your package structure in
the directory hierarchy under ..WEB-INF\classes. In other words, if you
compile your bean inside package org.company.my.java, then you should
place the class file for your bean in ..WEB-INF\classes\org\company\my\java
QM wrote:
On Sun, Mar 20, 2005 at 03:45:23PM -0500, Barry Kimelman wrote:
: An error occurred at line: 8 in the jsp file: /logon.jsp
: Generated servlet error:
: DatabaseBean cannot be resolved or is not a type
: [snip]
: <jsp:useBean id="foobar" scope="session" class="DatabaseBean" />
: [more snip]
The error message indicates that the class "DatabaseBean" is not in a
package, such as
com.someproject.DatabaseBean
Packageless classes are discouraged, and will not load under Tomcat 5.x
and later (aka servlet spec 2.3 and later).
Put your DatabaseBean class in a package and this error should fade
away.
-QM
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]