File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes No getter method for property Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "No getter method for property " Watch "No getter method for property " New topic
Author

No getter method for property

Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Hi all,
Am facing a strange problem in Struts application. Am using <logic:iterate> tag in my jsp and getting the values from my bean using set/get methods.now the strange thing is that am iterating 5 properties from my JSP, the result for 4 of them is ok but one of them is throwing me this error No getter method for property totalDays of bean detail. Either it should not work for all of them or it should for all. Why just one property is not getting its Set method?
Please clarify.









i tried googling but could not find a solution which could aid me. I read that weblogic 8 had some problem with reflection, but am using 9.2. If there would have been any weblogic problem it should be with all properties not just one of them.

This thing has taken much of my time, if anyone of you can throw some light on this would help...


[ May 30, 2008: Message edited by: pranav bhatt ]

[ May 30, 2008: Message edited by: pranav bhatt ]

[ May 30, 2008: Message edited by: pranav bhatt ]

[ May 30, 2008: Message edited by: pranav bhatt ]

[ May 30, 2008: Message edited by: pranav bhatt ]

[ May 30, 2008: Message edited by: pranav bhatt ]
[ June 02, 2008: Message edited by: pranav bhatt ]
Suresh Kumar
Greenhorn

Joined: May 26, 2008
Posts: 6
Hi Pranav,

It will be useful if you post the code in Action class which sets the DeatilForm as request/session attribute also.



Regards,
Suresh.
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Suresh,
Thanks for the reply, but i think that wont be any problem as if i put some other property there like endDate my jsp is working fine. Its just the problem with totalDays..

Well the relevent code is like this-:

[ May 30, 2008: Message edited by: pranav bhatt ]
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Have anyone faced the same situation?? I cant figure out why this is happenning...
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
People any idea???
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Anyone any ideas? Or the details i have given are insufficient??
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Hi all,
i have solved the issues now. actully it was not getting *netDays* cause the collection was getting its element from some DAO class and was having that particular property not added in collection. Actually previously the code was in JSP where it was totalDays was getting iterated with other added properties. i overlooked that as logic:iterate will iterate the collection values only.

Thanks Again all
[ June 04, 2008: Message edited by: pranav bhatt ]
 
wood burning stoves
 
subject: No getter method for property
 
Similar Threads
Struts Iterator
Logic:iterator issue in Struts 1.3.10
Exception in using logic:iterate tag's 'indexId' property in struts
Display Check Boxes & Dropdowns in Struts with search results
how to handle multiple iterates for the code