File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic property in struts

 
Nishita Jain
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it related to struts or JSF ?
 
Nishita Jain
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh. its my mistake i only wrote dynamic property in struts
ya this is purely struts application
Thank you.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll move this to the Struts forum.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic