> Hi,
>
> I am new to JSP and have been trying to go through the JSP Version 1 Public
> Draft to get an idea of the concept behind JSP. While having declaratives,
> actions, expressions etc. were all making sense, the one thing which I could
> not be sure about was this - "When you define a class in USEBEAN, is it just
> any java class or is it some kind of a special class implementing a certain
> interface etc."
>
> I did not see anything in the documentation that talked about how to write
> the beans referred to in the "USEBEAN" tag.
>

        The "beans" used by the usebean tag do not need to implement any
        particular JSP dependent interface or derive from a particular
        class. The only constraint is that they implement a public "no-args"
        constructor:

        public class CanonicalButUselessBean { public CanonicalButUselessBean()
{ } }

        Rgds

        - Larry Cable
begin:vcard
n:Cable;Laurence
x-mozilla-html:TRUE
        (MS: UCUP02-201), 901 San Antonio Road,;Palo Alto;CA;94303;USA
org:Java Software
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Staff Engineer
tel;fax:408-863-3195
tel;work:408-343-1776
adr;quoted-printable:;;Sun Microsystems Inc.,=0D=0A=
x-mozilla-cpt:;0
fn:Laurence  Cable
end:vcard

Reply via email to