Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ModelDriven and validate  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!