This section describes the useBean tag and the newInstance method.
Use the newInstance method to instantiate Business
types and Relationship types classes rather than the useBean tag when
only page or request scope is required. This allows full use of the mapping
files and type hierarchy lookup to obtain the appropriate object instance.
The newInstance method cannot be used to instantiate
classes from the ui, taglib, or util packages, or any helper classes
that do not represent a Business or Relationship type.
The use of the newInstance method insulates your
code from any reorganization of jar files that may happen.
The newInstance method works off a mapping file that
will be adjusted to point to the correct class.