Calling two backing bean in a JSP
I am populating data in JSP using my backig bean say BackingBeanA in a application. In another application I need to populate same data in my JSP + some other data in different components of the page for which am writing BackingBeanB.
How can i make use of both the beans in my JSP.
Any suggestions?
Thanks in advance.
[343 byte] By [
princea] at [2007-10-3 1:22:24]

Just add it to the faces-config.xml.<managed-bean>
<managed-bean-name>myBean1</managed-bean-name>
<managed-bean-class>mypackage.MyBean1</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>myBean2</managed-bean-name>
<managed-bean-class>mypackage.MyBean2</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
etc...
Do U want to use managed bean from application B in application A ?
If so, the way of BalusC won't work. I don't know any better way to share data between two web applications than using crosscontext .
If U will set in your applications crosscontext to true, then U will be able to save in application's A context some data , and then read it with application B.
Martin