--- Allen Gilliland <[EMAIL PROTECTED]> wrote:
> So, now all I really need to know is if there is a
> way that I can just flat out disable all of
struts2's
> validation stuff but still have my actions extend 
> ActionSupport?  

Create an interceptor stack without the validation
stuff.

> I would also technically consider this a bug because
> IMO I should be allowed to set action errors and 
> chain to other actions without having 
> validation break my chaining.

It's not a bug, it's a feature!

(Jokes aside, I would not in any way consider that a
bug.)

> My guess is that the validation code is 
> using the hasActionErrors() method to determine if
> the 'input' result should be sent after validation, 
> but that seems suboptimal.  It would be better if
the
> validation actually tracked if it had actually
failed
>  any of its validation checks and only modify the 
> result then, not just because there is an action 
> error.

But that's what the validation stuff is for; if
there's errors, go back to the input, regardless of
where the errors came from. That requires less work on
the programmers side: add an error, it goes back to
the input that caused the error.

If you want to circumvent default behavior just
redefine your interceptor stack, although you'll lose
the built-in validation handling then.

d.



 
____________________________________________________________________________________
Food fight? Enjoy some healthy debate 
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to