Thanks, solved it by putting vector in session in the screen class and then getting it back in the action class
-----Original Message----- From: Jeffery Painter [mailto:[EMAIL PROTECTED] Sent: 11 June 2004 14:38 To: Turbine Users List Subject: Re: How do I pass a vector object from a template to an action? 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] Scanned for viruses by MessageLabs Scanned for viruses by MessageLabs. The integrity and security of this message cannot be guaranteed. This email is intended for the named recipient only, and may contain confidential information and proprietary material. Any unauthorised use or disclosure is prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
