Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Help Please? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help Please?" Watch "Help Please?" New topic
Author

Help Please?

Mallik Avula
Ranch Hand

Joined: Nov 30, 2006
Posts: 86
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.

please any help?


Thanks & Regards<br />Mallik Avula<br />SCJP1.4
 
 
subject: Help Please?
 
Similar Threads
Dynamic fields in Struts ActionForm?
readio with index properties. need help
Arraylist in JSP with Html radio
Problem with html:radio tag within logic:iterate
Html Radio buttons and Arraylist