Ian,
 
You can use the get/setAttribute methods to send objects of any sort - the paramters to setAttribute are (String key, Object value).  The only thing
you need to ensure is that appropriate imports are made in both the jsp and the servlet to identify the class of the object.  This should work.
 
-AMT
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Ian Graham
Sent: Friday, December 10, 1999 4:04 AM
To: [EMAIL PROTECTED]
Subject: Using the same sessioned bean between a JSP and a Servlet

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