wood burning stoves 2.0*
The moose likes Struts and the fly likes ModelDriven and validate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ModelDriven and validate" Watch "ModelDriven and validate" New topic

ModelDriven and validate

Andreas Dilli

Joined: Feb 05, 2013
Posts: 3

my action implements ModelDriven. In my jsp i have Form-Data and data that will only be displayed.
When i submit the form in my save-method all the date in the model is available. But within the validate method only the requested data is available and so after the input result the form is rendered only with the data that i have seen in the validate method.
All the other data is lost.

Can anyone help me?
Andreas Dilli

Joined: Feb 05, 2013
Posts: 3
Some code:

Subhrangshu Samanta

Joined: Jul 30, 2012
Posts: 14
Hi Andreas,

Can you provide us the entire code in "MeasuringDeviceWizardAction.jsp" and "struts.xml".

Don't get me started about those stupid light bulbs.
subject: ModelDriven and validate
Similar Threads
Page attribute in validator
Validate of Form data
Form forgets data after validate method returns errors
Struts 2 and modeldriven
Re populating validation.xml fields