• 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:

error retrieving values in jsp using DynaValidatorForm in struts 1

 
Greenhorn
Posts: 17
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I have a small struts 1 application which when executed using ActionForm runs fine but when i use DynaActionForm or DynaValidatorForm i get an error.
I want to display the values entered in one jsp by user in other jsp.
I am using ${addContactForm.fname} in jsp to retrieve the value entered by user in form addContactForm and field fname, but i get the error :-

javax.servlet.ServletException: org.apache.jasper.JasperException: javax.el.PropertyNotFoundException: Property 'fname' not found on type org.apache.struts.action.DynaActionForm

Various files used are as follows:

web.xml


struts-config.xml




addContact.jsp



addContactSuccess.jsp



home.jsp




AddContactAction.java

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic