I think you would either need to place the vector in the user's session 
ie. setTemp() getTemp() methods or process the id's through the action 
class like

        int[] oids = data.getParameters().getInts("objId");

and iterate through the array.

A vector is a collection of objects and as such can not be directly passed 
back through the template.


HTH,
Jeff Painter


On Fri, 11 Jun 2004, Melanie Philpot wrote:

> Hi
> 
> How do I pass a vector object from a template to an action?
> 
> I have a set up where I put a vector into the context in a screen class. 
> A template then picks up this vector, iterates thru it and retrieves the elements. 
> Each element has an id which is used to set the name of a text box in a form, and is 
> therefore a parameter when the form is submitted
> 
> My problem is that I then want this template to be processed by an action. However 
> the action needs access to the original vector that was passed in to the template in 
> order to get the parameters for that form.
> 
> Is this possible to do?
> 
> Melanie
> ===========================================================
> Melanie Philpot 
> Web Developer 
> Central Government Division
> Anite Public Sector   
> 110 Fleet Road
> Fleet 
> Hampshire 
> GU51 4BL
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to