Hi all,
I have tried a lot and could not get a solution for my application. Actually i have a
Jsp page which have two radio buttons that needs to get generated dynamically. I tried out with some options, but could not use them properly.
As am confused about using the html:radio tag so please bear with me.
here is my jsp-:
check.jsp
here is the form bean-:
CheckBean.java
and here is my action -
CheckAction.java
the
strut-config.xml
Now when am running my application am getting the error-:
javax.servlet.jsp.JspException: Cannot find bean: "CHOICES" in any scope
I have set CHOICES in request attribute still am getting error.
Later i tried to change the check.jsp as-:
<logic:iterate id="choice" name="checkbean" collection="CHOICES">
so name will be my bean name and collection would be the collection from action class. But i get another error as-:
javax.servlet.jsp.JspException: Cannot create iterator for this collection
Could anyone tell me how exactly i should use the tags and where am going wrong. I tried to google much but couldn't find a solution.
Thanks