Skip to content
Advertisement

Struts2 Tags Radio button

I have this iterator that loops through an object.

JavaScript

where answer is a boolean value, that I am trying to set through radio buttons.

but the problem is, upon on the generated html, teh radio buttons. is like this

JavaScript

It did not have the indice/index. it only gave me the %{#key.index}

Advertisement

Answer

you have to use property tag to get the actual value

JavaScript

Better use radio tag of struts tag library, like this

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement