I've been able to create and use java beans only if they are part of a package.
I'm reading the SCWCD Exam Book by Manning Publishing and their example code doesn't work on my machine (Tomcat Standalone 4.1.31). Specifically the example of usage of Java Beans in Chapter 14 (pages 251-252). The following code causes an error:
The AddressBean.java file is as follows:
I can get the java bean to work if I compiled it as part of a package and use the import statement.
Is it possible for a java bean to be compiled without a designation to a package and still be used?
SCJP 1.4 - 93%
SCWCD 1.4 - 89%
IBM FileNet 3.5 - Developer
IBM FileNet 3.5 - Administrator