Yes, of course you are right. But what you talking about sounds like to change S2 mechanism itself, which we can not do. As a S2 user but not a S2 developer, the simplest way is to write a new validator......
Of course, If the [pre-condition based validation] is a common request, I think it will be great if we post it to the S2 feature request list. 2011/11/29 Dave Newton <davelnew...@gmail.com>: > If the need is across the application, then modifying the app-wide > interceptor makes sense. > > App-wide rule-based validations require something higher-level than > reworking existing validators, or writing new ones, to express something > that is likely declarative in nature. Seems more like "run this bunch of > validations based on this condition"--rather than simply look up > validations based on the action name, lookup should be based on the > condition(s). > > That's mechanism-level, not validate-level. > > d. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org