wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: readio with index properties. need help
 
Similar Threads
how to keep the values of radio buttons intact?
struts 2 validation problem
I want to use indexed properties
JSP Radio button iterate problem
Please help me regarding the forms selection