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


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ModelDriven and validate" Watch "ModelDriven and validate" New topic
Author

ModelDriven and validate

Andreas Dilli
Greenhorn

Joined: Feb 05, 2013
Posts: 3
Hi,

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
Greenhorn

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






Subhrangshu Samanta
Greenhorn

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

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

Thanks.
Subhrangshu
 
Consider Paul's rocket mass heater.
 
subject: ModelDriven and validate