aspose 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: "userName" of bean: "result"" Watch "No getter method for property: "userName" of bean: "result"" New topic
Author

No getter method for property: "userName" of bean: "result"

pallavi chaudhari
Ranch Hand

Joined: Jul 02, 2008
Posts: 54
Hello all,

i am getting No getter method for property: "userName" of bean: "result" this exception.I serched this forum for same got lot of solutions as change property to proper javabean standards tried that but it not helped.

I am giving my code please tell me:
Register.jsp


RegForm.java


Action class:



RegisterService.java


web.xml


strusts-config.xml
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Does the object contained in the form property results have a property named userName? The *form* does, but that's not what your code is asking for: your code is iterating over a list of unknown (to us) objects, each of which is expected to have a userName property.
pallavi chaudhari
Ranch Hand

Joined: Jul 02, 2008
Posts: 54
Thanks David Newton ,

Got your point and did changes in code......that solved my problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No getter method for property: "userName" of bean: "result"