File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Invalid argument looking up property: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Invalid argument looking up property:" Watch "Invalid argument looking up property:" New topic

Invalid argument looking up property:

Thomas Toth

Joined: Nov 16, 2006
Posts: 1
Hello Guys,

i have a question about an error.

I have a form like this:
<form-bean name="EntidadEditarDynaForm" type="com.pragma.web.PragmaDynaValidatorForm">
<form-property name="id" type="java.lang.Long" />
<form-property name="descripcion" type="java.lang.String" />
<form-property name="localizacion" type="" />
<form-property name="entidadBeneficiaria" type="" />

I fill my fields of the localizacionDTO with property="localizacion.ciudad" and it works.
Now my Problem:

In my EntidadBeneficiariaDTO I have a LocalizacionDTO, same goes for the Beans, there are all getters and setters.

Now, when i try to set property="entidadBeneficiaria.localizacion.ciudad"
I get the following error:

Invalid argument looking up property: "entidadBeneficiaria.localizacion.ciudad" of bean: "org.apache.struts.taglib.html.BEAN"

I red in this forum that the first item has to be not null, so i tried to initialiate the property with an empty EntidadBeneficiariaDTO, but the effect is the same.
Anybody knows a clue?

Thanks, Thomas
I agree. Here's the link:
subject: Invalid argument looking up property:
It's not a secret anymore!