Hi,
On Thu, 5 Jul 2001 02:58, Suresh Manne wrote:
> javax.servlet.ServletException: Cannot create bean of
> class my_classes_folder.my_class_file
What does your bean look like? Firstly, I'm assuming it has "package
my_classes_folder" at the top of it. Secondly, the main reason I find those
errors are the lack of a null argument constructor. To use that useBean tag
the way you are, you should have something like:
package my_classes_folder;
public class my_class_file
{
public my_class_file() { }
}
You might also have other things, I'm assuming you do, but that is the bare
minimum. However, you're not at all following conventions. The above should
be
package myPackage;
public class MyClass
{
public MyClass() { }
}
which would have the following useBean tag:
<jsp:useBean id="cs" class="myPackage.MyClass" scope="request" />
DOes that make sense?
cheers
dim