Chris,

I think the fundamental mechanism of S2 is the configurable interceptor 
stack where each interceptor applies itself to the current action based on 
the interfaces the action implements. You can still reuse this mechanism 
by defining your own interceptor stack with your own interfaces. Lets S2 ( 
or rather xwork ) take care of the wiring. Essentially, building your 
framework using the underlying configurable interceptor stack mechanism. 
Does that answer your question?

 - Rahul



From:
Christopher Schultz <ch...@christopherschultz.net>
To:
Struts Users Mailing List <user@struts.apache.org>
Date:
27-04-2010 02:29
Subject:
Re: S2 validation without API ties



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

Bump: does anyone have any ideas?

Thanks,
- -chris

On 4/12/2010 4:48 PM, Christopher Schultz wrote:
> 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

- ---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvV/noACgkQ9CaO5/Lv0PBPngCgrusPiyNQg9auIAyHITR+/3+Q
VSAAoKXhwC16xltYpBNciBU9Xogc05r5
=SYYs
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


Reply via email to