Well, U can add any object in your bean and make use of that objects from
different jsp files(child jsp fiiles) by useing <jsp:useBean >

If u r going to use the same object(EJB object)from different jsp files then
u dont need to go for <jsp:useBean>, because it will create a rapor over
rapor.Instead you can write a sessionInstanceTable wich is nothing but a
Hashtable in the main jsp file and add the objects there,then from any of
your child jsp files you can directly get the objects using
sessionInstanceTable.getInstance();


Thanks,
Balan
ProjectAchieve


-----Original Message-----
From: Girish Haran [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 29, 1999 9:57 AM
To: [EMAIL PROTECTED]
Subject: Data sharing between include .jsp


I would like to know what mechanisms are currently supported by JSP1.0
to share data between parent and child JSPs. (I typically have a master
JSP that delegate to other component child JSP to render specific areas
of the screen. The component JSP are used to assemble master pages
rapidly ) From reading the "Core Syntax Ref", I thought that by simply
declaring a reference variable in the parent JSP, it would become
available to the entire "translation unit" ( which I guess should
include all child JSP ). This is not the case in the WebLogic
implementation.

I could use <jsp:usebean > (JavaBeans) but I'm trying to leverage my
existing "model" classes (my version of bean classes that unfortunately
don't comply 100% to the JavaBeans spec) to rapidly change the front end
to JSP. Also, if I did "beanify" my models, is there any way to get hold
of the bean object ref in JSP so that I can invoke any public method
that I want?

Thanks

Girish Haran
Member of Tech Staff
Bidder's Edge Inc.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to