This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ModelDriven and validate

 
Andreas Dilli
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some code:






 
Subhrangshu Samanta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Andreas,

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

Thanks.
Subhrangshu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic