Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Empty Form after submit

 
Michael Ernst
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an Action, named PrepareEditCatAction and an Action named processAction. In the ProcessEditCatAction I prefill the form for editing the record and all looks fine but if the form is submitted, the form is completely empty. What could be the reason for this.
struts-config.xml

processEditCatAction:

Thanks in advance!

Regards Michael
 
Choon-Chern Lim
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your struts-config.xml, you should not have key properties (like shop.showCategories etc...), replace that with real URI path. The key properties are not going to get resolved in my opinion, even if you associate the property file in that config file.
 
Kerry Wilson
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you post the section of struts-config where you setup the DynaActionForm?
 
Michael Ernst
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your struts-config.xml, you should not have key properties (like shop.showCategories etc...), replace that with real URI path. The key properties are not going to get resolved in my opinion, even if you associate the property file in that config file.

I'm using Tiles for the layout and the properties like shop.showCategories etc. are set in the tiles-config.xml which I have associated in the struts-config.xml. I think there is no mistake becouse I could see the filled Form in the Browser and the Action for storing the edited fields will be executed. The mistake is, that all fields in the form are empty after submitting it!
Could you post the section of struts-config where you setup the DynaActionForm?



Validation rules are not set!

Regards Michael
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic