Chris wrote:
>
> Part II in what's threatening to be my Pedantic Bean Series . . .
> [...]
> Does JSP really only work with Beans (and not just plain Jane classes),
> and is the JSWDK just being nice (and if so what kind of a reference
> implementation is it? OR is there no Bean requirement at all - and if
> that's true, how come JSP says there is (heck, it calls the tag
> 'jsp:useBean")?
> [...]
> P.S. I STILL don't know how to write a bean
A Java Bean is nothing more than a Java class that follows a set of
naming conventions for its methods, e.g. getFoo and setFoo means the
Bean has a read/write property named foo. These simple conventions
make it possible for tools to understand what properties a Bean has,
and for instance provide GUIs to access the property values.
Optionally a Bean can provide a set of methods and some more stuff to
allow visual tools to use a customized property sheet for a Bean.
So, yes JSP uses Beans in the <jsp:useBean>, <jsp:setProperty> and
<jsp:getProperty> actions but there are no GUI based JSP tools available
at this time (as far as I know). In the future web authoring tools may
provide GUI based tools for customizing the Beans as well, but that's pure
speculation at this point. Writing a Bean is simply to follow the naming
conventions.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".