Hay, do some Google on Struts Nested Forms.

well, this could be of good help to you. (i haven't done much investigations 
with your needs)
http://www.learntechnology.net/struts-nested.do

Thanks and Regards,
Thomas Joseph 
  ----- Original Message ----- 
  From: Jakub Milkiewicz 
  To: Struts Users Mailing List 
  Sent: Friday, July 21, 2006 1:34 AM
  Subject: Re: dynamic checkboxes and radio buttons in one group


  Hi
  I think i didn't express clearly in my previous mail.
  I will try to do it again.
  In my Configuration file i can have any number of questions, for each
  question i store question text and some kind of flag to indicate if i should
  render single checkbox or 2 radio buttons.
  If i render checkbox then its value is "Yes", if i render 2 radio buttons
  values are "Yes" or "No".
  My config file is read in action that prepares me a page with questions.
  Reading configuration is the only place where i can figure how namy
  questions i need to present. Cause for each question i can have only one
  answer (one of the radio buttons selected or checkbox checked) i want to map
  all answers for questions to a single action form property - let's call it
  questionAnswers. I do not wanna to have a fixed number of properties
  indicating answer for question1, answer for question2, answer for question3
  ...
  Please take a look at example:
  Question1:
   Do you like struts
  Answer:
     YES   NO (2 radio buttons)
  Question2:
   Do you like yourself
  Answers:
     YES  (checkbox)
  Question3:
   Do you feel like a shower
  Answers:
     YES   NO  (2 radio buttons)
  Question4:
   Do you like struts-mailing list
  Answers:
     YES  (checkbox)

  Submitt.

Reply via email to