I am using logic iterate tag to loop around a collection and using bean write tag to present the data.
the logic:iterate iterates a collection 'mycollection', which contains objects of mybean class.
In 'mybean' class i have three
string objects which are presented through bean:write
logic:iterate name = myform property = mycollection id=mycollection
bean:write name=mycollection property=string1
bean:write name=mycollection property=string2
bean:write name=mycollection property=string3
/logic:iterate
this part of my
JSP works very fine.
after using the bean:write tag, which reads the data from 'mybean' class
and after end of logic:iterate tag, when i try to point to a property of myform again, i get an exception- no getter method for property...
like
after the logic iterate tag when i write
html:hidden name=myform property=mystring
i get the exception.
my string property is present in my ActionForm and not specified in MyBean class. In this case i get the Exception. If i use the same tag before using bean:Write tag then it is working fine.
i dont know whether this is because of bean:write or logic:iterate tag, where i point to a collection which contains object of some other class.
why is this exception coming?help me.
regards
Surendar.