Passing a Vector from servlet to servlet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Matt_Hohmeister
Posted On:   Tuesday, August 7, 2001 03:36 PM

I have a Vector foo:


Vector foo = new Vector();


that I use on my servlet. I have a submit button that will spawn another servlet, and I want servlet #2 to be able to use foo. What can I do to allow it to be transferred over? Thanks


--matt

Re: Passing a Vector from servlet to servlet

Posted By:   Mittal_Bhiogade  
Posted On:   Tuesday, August 7, 2001 08:51 PM

do request.setAttribute("vec",foo)in servlet1
then forward it to servlet in that do
Vector v=(Vector)request.getAttribute("vec");
in servlet2
About | Sitemap | Contact