RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
2"); skill = new String [2]; skill[0] = "Java"; skill[1] = "Spring"; } //jsp Java and Spring check boxes will be selected. Thanks, Nuwan David Ogasawara wrote: > Hi, > > Thank you very much for your assistance, but I am alrea

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
Hi, Yes, I am saving the results in a database. When the user returns, I query the database and place the results into a string array. I am unable to get this array to repopulate the check boxes the user previously selected. Thanks, Dave -Original Message- From: Struts Two [mailto:[E

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
} in jsp i have this tag and which will render 4 check boxes. Thanks, Nuwan David Ogasawara wrote: > Hello, > > I'm new to Struts 2 and I was wondering how to pre-populate checkboxes > with values from a database (or even hard-coded values). I am iterating > thro

[S2] Pre-populating Checkboxes

2008-06-30 Thread David Ogasawara
Hello, I'm new to Struts 2 and I was wondering how to pre-populate checkboxes with values from a database (or even hard-coded values). I am iterating through an arraylist of hashmaps (description, type_cd) to create the checkboxes in the form. I then create a string array with the values from a