How are you doing everybody, I have a table in a database that has : ID , Title, Priority ( 1 or 2, or 3, or 4, or 5)
I want to have a survey with a form that is populated from that table : it will show : ID label - Title label - and 5 radio buttons the user chose and check one radio button of each line and the at the end submit back to the database.
Please can you help on how to do it or do you have a survey example.
1. You need to create a form containg id , title,priority , priorities. Store the available priorities in the String Priorities array from the Database 2. In the JSP using struts iterate on priorities create radio button having name priority. 3. When user populate the information and click on submit you can get the information in action by using form bean.