Hello, I’ve a problem, please if somebody could help me I’ll really
appreciate it.
I have a dynamic matrix with radio buttons, only the number of rows could
change. The matrix is as follows, it has 4 static columns of radio buttons
and for each row I can select only one (radio button):
Skill 1 O O O O
Skill 2 O O O O
Skill 3 O O O O
Skill n O O O O
How could I store the selected radio buttons in the ActionForm? Whichever
information you have that it could help me, I’d really appreciate it.
KevinHanna - 02 Feb 2005 23:28 GMT
Each column would have an array:
Integer[] col1s;
Integer[] col2s'
...
In your JSP:
<html:form...>
Loop
<html:multibox property="col1s" value="${skill.number}"/>
End Loop
Where skil.number resloves to something unique for that skill/row
Wendy S - 02 Feb 2005 23:47 GMT
> I have a dynamic matrix with radio buttons, only the number of rows could
> change. The matrix is as follows, it has 4 static columns of radio buttons
[quoted text clipped - 7 lines]
> How could I store the selected radio buttons in the ActionForm? Whichever
> information you have that it could help me, I?d really appreciate it.
It depends on what the data is, and what you want to do with it. In the
simplest case, a String[] should work.
I can also see an array of Skill objects. Each Skill has a description and
(what are the columns? maybe) a level. I'd like to know more about the form
first.
This really isn't a matrix since you only allow one selection per row. (If
it were checkboxes instead of radio buttons, then you'd need a
two-dimensional structure.)

Signature
Wendy
Arvind - 11 Jun 2005 00:12 GMT
Hi,
Have you got a solution for this?
I have the same problem.
I would appreciate if you get back to me how you got solution using Struts.
Please feel free to provide me more info. You could reach me at
javajdk15@yahoo.com
Thanks and regards,
>Hello, I’ve a problem, please if somebody could help me I’ll really
>appreciate it.
[quoted text clipped - 10 lines]
>How could I store the selected radio buttons in the ActionForm? Whichever
>information you have that it could help me, I’d really appreciate it.
kev - 28 Apr 2008 11:02 GMT
hi find some gread deals here.
great deals on games
http://www.find-a-great-deal.blogspot.com
find out how to earn free easy cash here
http://www.find-a-deal.blogspot.com
easy cash will show you the way to make fast easy cash
http://www.niceeasy-cash.blogspot.com