Hmmm, that solution sounds like what Craig came up with for next
generation of Struts - Struts-chains :)  One big feature of the chain is
it uses a special context object which not only supports servlet api, but
portlet, jsf, and anything else.

Struts-chain is a composible replacement for the RequestProcessor to make
it easy to modify how Struts processes a request.  There is considerable
overlap with this project, but it probably won't be ready for a bit while
SAIF is ready now.

Still, we could use elements of struts-chain in SAIF to ease migration
where appropriate.  We could re-use it's ActionContext in particular and
even make a SIAF interceptor a Command implementation and use the chain to
link interceptors together.  This would make it possible to re-use SAIF
interceptor chains with new Struts.  I think this approach would provide a
nice migration path for users since it doesn't require the replacing of
the RequestProcessor with Struts-chain, but still utilizes struts-chain
for interceptor chains making them flexible and re-usable.

What do you think?

Don

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi folks!
>
> Christian suggested to change the signature of the initialize(...)
method to include the ServletContext as well.
> I would like to suggest another approach however.
>
> First I introduced a new class called InterceptorContext. This class
holds the important references such as HttpServletRequest,
> ActionMapping and so an. And it holds a reference to the ServletContext
as well.
> Then I changed the signature of the doIntercept method:
>
> ActionForward doIntercept(InterceptorContext context,
> ActionInterceptorChain chain)
>
> This way we can add more references to the context without the need to
change the signature of the doIntercept method. Additionally
> the doInterceptor method wouldn't grow mad :-)
>
> What do you think?
>
> Yours,
> Lars
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0.3
>
> iQA/AwUBP8XJZrcyzbDWnRDCEQI0jwCfR+GiK8WScsxxix4rokAMjNNiExkAoId8
mc3LWs0em2LfuX/eMliN37Tq
> =CluU
> -----END PGP SIGNATURE-----
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Struts-apps mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/struts-apps
>





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps

Reply via email to