Hello,

I have the following Problem

I putted a Bean in  the ActionServlet in the Scope "session".This Bean
implements
an Hashtable(salesProduct) ,wich I want to iterate with the IterateTag

"
<logic:iterate id="sp1" name="sp" property ="salesProductHt"
scope="session">.....
"

This throws following Exception:

"
No getter method for property salesProductHt of bean sp
"

I initalisated this Hashtable an the getter Method in the bean in  this
very Static Way

"
Hashtable salesProductHt = new Hashtable();

protected Hashtable getSalesProductHt (){

salesProductHt.put("1","First");
salesProductHt.put("2","Second");
salesProductHt.put("3","Third");
salesProductHt.put("4","Fourth");
salesProductHt.put("5","Fifth");

return (this.salesProductHt);

}
"

if I put this Hashtable  in the ActionServlet in the Session and try to
read its Elements
this way it works well.

"
<logic:iterate id="Hash" name="Hashtable_Init_In_ActionServlet"
scope="session" >
 Element Value: <bean:write name="Hash"/><br>
</logic:iterate>
"

Whats the difference , why can t the getterMethod not be found ??


Please Help me...





Reply via email to