Ok, this is my understanding .....

1. your session bean is not a regular bean.  Although, it forlow the bean naming
convention, but remember the client only have the remote interface and not the
actual bean object itself.  therefore, one can not instantiate it via class loader.

But you still can do it by your controller servlet ( I assume you model you application
using MVC model 2).  In you servlet get a remote reference to you session bean via
its home interface, and but it in your session object, and then declare it in your jsb page.  Notice, your servelt has to be loaded first otherwise you're screw ...
 
 

Ian Graham wrote:

Hi people, I have been trying for a while now to do this but I have finally decided it is a problem for the experts on this list. What the situation is, is I have three things, jsp's a big controlling servlet and a sessioned bean. The plan is to only have getProperty methods on the JSPs and actually set the data that the page will be using in the servlet. Therefore I need to be able to access the sessioned bean from the servlet and the JSP. I know how to send single values, i.e. using the set/getAttribute methods but not whole beans. Is this possible?? If so then how, thank you very much for your help, Ian

Reply via email to