Re: How to store a String[] in a hidden field?

2002-01-16 Thread Keith Bacon
Just looked at this reply - I wonder why I said put these methods in an object in the session? They can just be static methods of any class. Keith. --- Keith Bacon <[EMAIL PROTECTED]> wrote: > How about putting a helper class in your session which has methods:- > > String stringArrayToTokenized

Re: How to store a String[] in a hidden field?

2002-01-16 Thread Keith Bacon
How about putting a helper class in your session which has methods:- String stringArrayToTokenizedString(String[] array) //store array elements delimted by some char that's not in the data. String[] tokenizedStringToStringArray. //Use StringTokeniser to build the array again. Then you nee

Re: How to store a String[] in a hidden field?

2002-01-16 Thread Christian Bouessay
Well, I've found one solution: "> Is there a better way to do this? -- C. Bouessay Christian Bouessay wrote: > Hi, > I have a form with a multiple select box. > > class myForm1 extends ActionForm { > String[] getFields() { ...} > void setFields(String[] fields ) >

How to store a String[] in a hidden field?

2002-01-16 Thread Christian Bouessay
Hi, I have a form with a multiple select box. class myForm1 extends ActionForm { String[] getFields() { ...} void setFields(String[] fields ) ... } When I submit the form and validate() return null, it forwards to an other view of the same form where I would like to store