There are at least two flavors of bean that I am aware of:  Java Beans and Enterprise 
Java Beans.  Enterprise Java Bean are a whole different ball game -- only remotely 
similar:  they don't even appear to be a superset of the Java Bean spec.  The beans 
used in JSP are 'regular' Java Beans.  In other words, they conform to the conventions 
described in any book you might pick up about (non-Enterprise) Java Beans.

However, since JSP JavaBean have no GUI component (I suppose they could if you wanted 
it too) there are some parts of the Java Beans specification which may not apply to 
JSP Java Beans.  However, any JavaBean aware tool (by this time, all mainline Java 
IDE's are JavaBean aware, not to mention Sun's 'BeanBox' that comes with the Bean 
Developers Kit) would be able to 'introspect' your Java Bean, provide a property 
sheet, etc.

For JSP purposes, beans are very simple:  prefix your method names with either 'get' 
or 'set' to access any bean 'property'.

JSP also adds one optional function (processRequest()) which is used by JSP but is not 
part of the JavaBean spec.

Chris

David Hecksel wrote:

> Excuse my naivety, but what is the difference between a bean used in a servlet
> and a JSP bean?
>
> Is there something concrete or is it a matter of symantecs?
>
> Ted Stockwell wrote:
>
> > Hi,
> >
> > I don't have any JSP components for you to sell (wish I did).  When I read
> > your message I realized that I have never anticipated the growth of a JSP
> > bean market. There definitely will be one though.
> > I have built many VBX/ActiveX/JavaBean components in the past, some
> > commercial, and have a good understanding of what comprises a commercial GUI
> > component package.  A JSP bean is significantly different since it's a
> > server component.
> > Would you care to share a description of what a commercial JSP bean would be
> > like?  Perhaps you can describe a prototypical example.
> >
> > Is a JSP bean also an Enterprise Java Bean?
> > What lind of tools will use a JSP bean?  Do JSP beans have "property
> > sheets"?
> > Would any high-level "toolkit" beans be included that generate large chunks
> > of HTML?
> > What are the "killer" JSP Bean applications?
> >
> > ted stockwell
> >
> > > -----Original Message-----
> > > From: Charles Stack [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, April 15, 1999 3:08 PM
> > > To:   [EMAIL PROTECTED]
> > > Subject:      JSP 1.0 Release
> > >
> > > As I've mentioned before on this list, I am an extremely enthusiastic
> > > supporter of JSP.  We've built our software component ecommerce website
> > > over
> > > the last few months using JSP (NT/IIS/JRun).
> > >
> > > Sun will be releasing the JSP 1.0 spec in May.  And we are developing a
> > > new
> > > section of our software component marketplace devoted to JSP JavaBeans.
> > > We
> > > plan to time our announcement with the 1.0 release.
> > >
> > > If you have any commercial quality JSP JavaBeans that you would be
> > > interested in reselling on our site we would very much like to hear from
> > > you.
> > >
> > > Even if you don't have any JSP JavaBeans for sale I would be interested in
> > > yout feedback.  Having done CGI, ASP, and ISAPI programming for years I'm
> > > convinced that JSP offers a vastly superior development platform and I
> > > predict significant momentum once the spec is finalized.
> > >
> > > Please check out our site at http://www.flashline.com .
> > >
> > >
> > > Charles M. Stack
> > > President, Flashline.com, Inc.
> > > The Software Component Marketplace
> > > [EMAIL PROTECTED]
> > >
> > > ==========================================================================
> > > =
> > > 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".
> >
> > ===========================================================================
> > 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".
>
> --
>
> Regards,
>
> Dave Hecksel
> Axtive Software Corporation
> (214) 880-4820
>
> ---------------------------
>
> e.Business Personalization Made e.Z
>
> ===> For Interactive e.Business Personalization Solutions, <===
> ===> check out http://www.axtive.com  <===
>
>                                                   
>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>                    Name: vcard.vcf
>    vcard.vcf       Type: VCard (text/x-vcard)
>                Encoding: 7bit
>             Description: Card for David Hecksel
begin:vcard
n:Cobb;Christopher
tel;cell:703-909-7550
tel;fax:703-648-7475
tel;work:703-648-6725
x-mozilla-html:TRUE
org:Powerhouse Technologies, Inc.
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:SW Architect
fn:Christopher Cobb
end:vcard

Reply via email to