-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All,
It's been a long time since I've posted, and I've got my eye on S2 for some upcoming work that will share code with a non-web-based interface so I'd like to re-use as much code as possible without tying myself to the S2 API. The issue is with field validation: I'd love to use an action which has fields, etc. and possibly even a validate() method but I'd like to avoid having a dependency on the S2 API. Is this possible? I've been reading "Struts 2 in Action" which has a chapter on validation (the "real" kind where you specify the validation separate from the code rather than hard-coding it) but it looks like you have to at least implement ValidationAware, which ties me to the S2 API (well, xwork, but whatever...). I'm wondering if it's a possibility to, say, put something on the ValueStack that implements this interface /other/ than the Action itself or something like that? Any ideas or best practices anyone could suggest? Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvDhx0ACgkQ9CaO5/Lv0PAzmwCfcm1BaR9yh89K0GAf1EliN0rA /UsAniI8c1GDew6iR1i/TAhQQaro7dOM =NMyk -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org