I have tried the following and have still not been able to instantiate a bean from a servlet in tomcat 4.1.30.
1. create a package and import it
classes/java-servlets/java-beans
import java-beans.*;
and/or
import java-servlets.java-beans.*;
i am running win2000, set the environment
classpath; also tried with a bat file and
directly from the cmd line.
2. placed the bean classes inside the java-
servlets dir. Packaged all together.
3. i can access bean in jsp’s utilizing
and use page directive to import
<%@ page import="java-servlets.java-beans.*;
I do not understand why the page directive import
is ok, and the import statement in the servlet is not.
Any help or suggestions would be appreciated.