File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes error retrieving values in jsp using DynaValidatorForm in struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error retrieving values in jsp using DynaValidatorForm in struts 1" Watch "error retrieving values in jsp using DynaValidatorForm in struts 1" New topic
Author

error retrieving values in jsp using DynaValidatorForm in struts 1

shanky raja
Greenhorn

Joined: Dec 19, 2011
Posts: 15

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error retrieving values in jsp using DynaValidatorForm in struts 1
 
Similar Threads
Struts Validatons are not working
Struts question
Getting null pointer Exception
How to update a data in database from jsp
Retrive a single data from database and display that in jsp text box.