-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I have changed the signature of the ActionInterceptor.initialize method
to:
public void initialize(ServletContext servletContext)
You may ask what has happened to the Properties object? Since I like
the IoC idea very much
I modified the initialization process a little bit. The
RequestProcessor now uses BeanUtils for
populating the properties defined in interceptor-config.xml through
JavaBean style setters.
For example if you define the following:
<interceptor ...
<properties>
<property name="foo" value="bar"/>
<property name="number" value="10"/>
RequestProcessor will try to call the setters setFoo(...) and
setNumber(...). BeanUtils tries automatic
type conversion as well. Therefore it would be ok to define setNumber
as setNumber(int number).
Additionally I have switched to the InterceptorContext class. This
cleans up the doInterceptor method.
I did not use InterceptorAction however because InterceptorContext is
shared between all interceptors.
You can even set properties via context.setAttribute(...) if you like
:-)
Now finally I will have a look at interceptor properties per action.
Yours,
Lars
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBP8Y8QbcyzbDWnRDCEQIY/gCfUc2Oc5idpwBDQrY0Ke7QSFqRnjoAn2XA
ZwCod9OazINimr+bpXve3Tx8
=TEx9
-----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