• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynamic property in struts

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,
i stuck again with very tricky thing as per my knoledge in struts because i am new to this.
ok what my problem is that i have list of questions in 1 page
like this

1> Question 1
chkbox
chkbox
chkbox
chkbox

2> Question 2
chkbox
chkbox
chkbox
chkbox

3> Question 3
chkbox
chkbox
chkbox
chkbox

4> Question 4
chkbox
chkbox
chkbox
chkbox
.
.
.
Save(button)

for evry quesion there are so many checkbox i have to select one of them which one is correct, then save that thing in database. now the problem is that for each question checkbox i only have one property(same name). so as soon as i select any checkbox for second question the selected checkbox of 1st question gets deselected and that is obvious. and this question No are dynamic so there can be 10 question or anything. so can anyone suggest me how to solve this problem. and the thing is that i can not put all question in different it must be same page.Is it like i have to dynamically generate the property?

Thanks
 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it related to struts or JSF ?
 
Nishita Jain
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh. its my mistake i only wrote dynamic property in struts
ya this is purely struts application
Thank you.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'll move this to the Struts forum.

Mark
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please read this link on indexed properties in Struts. It should give you some ideas on how to proceed. If after reading this you still have questions, let us know.
 
Nishita Jain
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
ya that link is really very helpful. my problem is solved . i used indexed properties for that.
Thank you very much for helping me.
Cheers
Nishita
 
reply
    Bookmark Topic Watch Topic
  • New Topic