• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

struts 1.3 action form

 
Greenhorn
Posts: 26
MySQL Database Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic