Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error retrieving values in jsp using DynaValidatorForm in struts 1

 
shanky raja
Greenhorn
Posts: 17
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic