It's not a secret anymore!*
The moose likes Struts and the fly likes readio with index properties. need help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "readio with index properties. need help" Watch "readio with index properties. need help" New topic
Author

readio with index properties. need help

Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
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

Joined: Feb 15, 2005
Posts: 4864
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;


Merrill
Consultant, Sima Solutions
 
GeeCON Prague 2014
 
subject: readio with index properties. need help