HI friends, how could not give the Subject because my situation is like that. let me explain my problem. i have some(the number can vary ) questions in Database and i need to display in page. there is one field question_type which says whether it is a check box or radio button or select box.
Once i displayed to page, the user will give some answer to those questions and submit the form. then i need to same those options in some table as user options. For this My design is, i have a questionsVO(questionId, QuestionBody, questionType, and list of optionVO's) and optionVO(optionId, optionBody) The database calling method will collect options of a question and question details into VO and add it to the ArrayList. So After executing it will return a list.
For this my jsp code like this.
How to give the name for form bean so that we can collection user answers for a question in action class.