Meaningless Drivel is fun!
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
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
It's not a secret anymore!