• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Invalid Argument looking up property Exception

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!