Dear JSP/Struts Gurus,

I am using some radio buttons at a JSP page and i wanna know which one is clicked (depending on the rows return from my Database -- the numbers of radio buttons with data return is different); so i gotten this line; however, i notice that it can only work only in multiple 'records' return and fails when only one result is return.

Anyone can advise?

( var i = 0; i < document.forms[j].elements.length; i++)