struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: Struts 1.3 action form
Date Fri, 05 Nov 2010 18:10:29 GMT
Are you using the Struts form tag? Does the Person class expose its
attributes through getters and setters?

On Nov 5, 2010 12:42 PM, "Abhishek Agarwal" <> wrote:
> It's killing me.
> I am unable to use a pojo(simple java class akin Employee or Person)
> in my struts 1.3 ActionForm as a formbean's property. I am referring
> complete reference second edition, and I see in it, it has been
> mentioned that owing to java's reflection one can use the nested
> properties in formbeans.
> But when I use it, and try to access it in the form's input jsp page,
> then I get this exception:
> org.apache.jasper.JasperException: javax.servlet.ServletException:
> javax.servlet.jsp.JspException: Invalid argument looking up property
> Actually I created a Person property named "p" for my form, and this
> Person class has certain attributes, one of them being,
> firstName(String).
> When I create a form for taking this firstName as input, by using:
> <html:text property="p.firstName"/> inside <form action="/Calc"/>, it
> gives the above mentioned exception.
> I even tried the nested tag library tag for the same, but it i also
> having the same problem.
> Mercy, please. :(
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message