Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invalid Argument looking up property Exception

 
Ayan Biswas
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a field in jsp page

And here is my mapping in struts-config.xml

When the page loads firstly it displays the textbox properly.But when I click a hyperLink and the control goes to the AddHierarchyNodeAction class and then returns back to the same page it shows the following error.(The error persists even if I keep my action class blank)
Invalid argument looking up property: "addhierarchyVO.tcrmTx.tcrmObject.hierarchySearchBObj.hierarchyName" of bean: "org.apache.struts.taglib.html.BEAN"
Why is this happening?
 
Ayan Biswas
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok.Found the solution to my problem(after a lot of googling).All that I needed to do was to instansiate the bean in my action class..Since ,if the property of a bean is null it shows property not found exception
This is what I wrote in my action class
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic