Hi Mohammed,
Cant say I really understand the question....

In general this is what the Session Objects are for....
So say you have a servlet and a JSP page.... and say the servlet makes the
bean with the Array List in it.... then if you

session.setAttribute("MyBean", MyBean);

you can get it (MyBean) back when the next call comes into say the JSP
page....

Now if you read up on this you will see you can also set 'request'
objects.... and these are good for when you say dispatch a request to a JSP
page from the servlet and want to pass a bean across.

Anyway...  if you just google for "servlet session and setAttribute".... you
will be on your way... I think ;)
This area of servlet programming is one of the things that make it such a
powerful technology.
Have fun...

----- Original Message ----- From: "Mohammed Zabin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, July 23, 2007 11:18 AM
Subject: Bean and Servlet


Hi All
What is the best way to pass a list collection from a Bean to a Servlet?
Thank you



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to