Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
pallavi chaudhari
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David Newton ,

Got your point and did changes in code......that solved my problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic