A Simple Example
We define the Java Bean class:
import java.util.* ;
class DateBean {
public String getDate() {
return (new Date()).toString() ;
}
}
This has a single read-only property called date (note there is no associated instance variable).
It implicitly has a no-argument constructor: the default constructor.
Under Tomcat this class can be placed under the application WEB-INF/classes/ directory.