Hi expert, 

i want to generate this:

 <input type="radio" name="ans" value="one">             
 Element Value: one<br />
 <input type="radio" name="ans" value="two">             
 Element Value: two<br />

but i get the following result:

             <input type="radio" name="ans" value="myCollectionElement">             
             Element Value: one<br />
             <input type="radio" name="ans" value="myCollectionElement">             
             Element Value: two<br />

the code i use is :

             <logic:iterate id="myCollectionElement" name="queryForm" 
property="answers">
             <html:radio name="queryForm" property="ans"  value="myCollectionElement" 
/>             
             Element Value: <bean:write name="myCollectionElement" /><br />
             </logic:iterate>
    
               *queryForm is a formBean
               *answers is queryForm's property which return a Collection Class
               *ans is a String

how can i solve the problem?

thx
             



           

Reply via email to