File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes dynamic property in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
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: 17260
    
    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
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
Nishita Jain
Ranch Hand

Joined: Mar 30, 2006
Posts: 97
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dynamic property in struts