This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Meteor in Action and have Stephan Hochhaus & Manuel Schoebel on-line!
See this thread for details.
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 Meteor in Action this week in the JavaScript 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".

I agree. Here's the link:
subject: ModelDriven and validate