• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Empty Form after submit

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic