jsp:useBean

Dokumntace rika neco takoveho:

To locate or instantiate the Bean, <jsp:useBean> takes the following steps, in this order:
   1. Attempts to locate a Bean with the scope and name you specify.
   2. Defines an object reference variable with the name you specify.
3. If it finds the Bean, stores a reference to it in the variable. If you specified type, gives the Bean that type. 4. If it does not find the Bean, instantiates it from the class you specify, storing a reference to it in the new variable. If the class name represents a serialized template, the Bean is instantiated by java.beans.Beans.instantiate. 5. If <jsp:useBean> has instantiated (rather than located) the Bean, and if it has body tags or elements (between <jsp:useBean> and </jsp:useBean>), executes the body tags.

a o kus dale:
Instantiates a Bean from a class, using the new keyword and the class constructor. The class must not be abstract and must have a public, no-argument constructor. The package and class name are case sensitive.

Takze cesta, pokud jsem neco neprehledl, pres parametricky konstruktor nevede. Nejjednodussi mi prijde pouzit scriptlet nebo vlastni tag. A samozrejme si muzete vyrobit beanu a sessionId ji vlozit pomoci seteru (prinejhorsim pak tuto beanu pouzit jako factory...).


S pozdravem
    Ondra "Satai" Nekola
    [EMAIL PROTECTED]
    http://www.nekola.cz/

-----------
Elric: "Do not try the patience of Wizards, for they are subtle and quick to anger."


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Odpovedet emailem