This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes Control validation on dynaforms Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Control validation on dynaforms" Watch "Control validation on dynaforms" New topic
Author

Control validation on dynaforms

Jan Andersson
Greenhorn

Joined: Sep 06, 2007
Posts: 7
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!
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Control validation on dynaforms
 
Similar Threads
DynaActionForm and Validation
How to set value in html:text using bean:write
For struts form validation
DynaValidatorForm not allowing insert.
jQuery-How to highlight invalid input field value after getting validation error