On Thu, 30 Mar 2000, Glenn Nielsen wrote:

> But we have not found a way yet to pass an object from one bean to
> another.  For example, say they use one bean that performs a query
> of a database to generate a Vector containing a result set.  And
> need to pass that Vector object on to another bean that formats the
> result set into an HTML table.
>
> We could package everything into one bean, but then that defeats
> the component nature of using beans.

Sure. You've got a couple of options. One is to store beans in the page or
session contexts, and provide references to the beans around (or use
naming conventions.)

Another option (a better one, IMHO) is to use JSP Taglibs, which allow you
to create scripting elements.

-----------------------------------------------------------
Joseph B. Ottinger               [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo      HOMES.COM Developer

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to