aspose file tools*
The moose likes JSF and the fly likes dynamic property in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "dynamic property in struts " Watch "dynamic property in struts " New topic
Author

dynamic property in struts

Nishita Jain
Ranch Hand

Joined: Mar 30, 2006
Posts: 97
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


Nishita
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
Is it related to struts or JSF ?
Nishita Jain
Ranch Hand

Joined: Mar 30, 2006
Posts: 97
oh. its my mistake i only wrote dynamic property in struts
ya this is purely struts application
Thank you.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

I'll move this to the Struts forum.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: dynamic property in struts