Re: Dynamic TextFields in Struts 2

2009-01-19 Thread KE LI
Hi Dave and Shashi, Thanks for you two's quick reply!! It does help~:) I just got up, lol. Licco 2009/1/20 sasikumar > Hi, > you dont have to explicitly add the values to the list in the setter > methods, since the framework will do that for you , > also you dont have to explicitly provid

Re: Dynamic TextFields in Struts 2

2009-01-19 Thread sasikumar
Hi, you dont have to explicitly add the values to the list in the setter methods, since the framework will do that for you , also you dont have to explicitly provide the index in the property field (name) (even though it will work with explicit indexing as well) . refer the fallowing code

Re: Dynamic TextFields in Struts 2

2009-01-19 Thread Dave Newton
KE LI wrote: Dear All, I want to do something like this: in my action i create: List textFields = new ArrayList(); and i tried to write set method in 2 ways: 1. public void setTextFields (List textFields) 2. public void setTextFields(String text) Without a machine to check with, I'd

Dynamic TextFields in Struts 2

2009-01-19 Thread KE LI
Dear All, I want to do something like this: in my action i create: List textFields = new ArrayList(); and i tried to write set method in 2 ways: 1. public void setTextFields (List textFields) 2. public void setTextFields(String text) { textFields.add(text); } and in my jsp, i