-----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

Reply via email to