Discussion Locked

instantiate a bean from a servlet in tomcat-4.1.30

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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.

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.