Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

readio with index properties. need help

 
Vicky Pandya
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using html : radio with indexed properties. Displaying works fine but retrieving values in the action using action form is becoming an issue. I have nearly 50 questions with Yes, No and N/A radio options along with text area to answer. How do I do it? I have gone through index properties turotial but to my particular question, couldn't find anything for radio buttons. Any help, pointers with example would be appreciated.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a quick sample:


test.jsp

In order for this to work, you must either use session scope for the ActionForm, or use lazy initialization in the getters to re-create the ArrayList of Questions if it's null;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic