• 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

Control validation on dynaforms

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I using struts 1.3.8 to build a pretty simple application.
I use one dispatch action, one jsp-form for both the update and the create,a DynaValidatorForm och struts validation configured in xml.

The update flow works well, however the create flow does not. Reason is that the validation kicks in just by going to the form, and I get errors on all the "required" fields since they are empty.

So is there anyway to stop the validation from running? I looked into using DynaActionForm and manually calling validate, however validate is not implemented for DynaActionForm(!) Removing required validation from the validation.xml into code might work. But can't find a way to create ActionError anymore so would end up using ActionMessage to display validation errors.

Surely there must be some way to do this!
Any help appreciated!
reply
    Bookmark Topic Watch Topic
  • New Topic