-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

All,

I'd like to use struts-config.xml to set some properties on an action,
just like you might use <init-param> on a servlet.

I see that <set-property> is an option under <action> in the DTD and I
mistakenly thought that <set-property> would set properties on the
Action instance, but it actually sets properties on the ActionMapping
instance that Struts uses when parsing the configuration file. [1]

I just want a single property to be set on a single action (or anytime
that action is instantiated, I suppose). Is there a way to do that
without creating a custom ActionMapping (which, while easy, seems
architecturally distasteful for my use case)?

Thanks,
- -chris

[1]
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg21396.html
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJWH/dZAAoJEBzwKT+lPKRYbnUP/Ax696nNxnFs75HrED/7Jelh
vmjFiUQUMkZufoWF4yMlU7KMLJ4VKSghIuOhsAElEEKbCtB435ZAt3f3D/AASE/p
UBk3Zz9UofCLHrXDWhBxAt4HKv1lnXCr0Qgs28oTgWIk+RSEiGxCJer6buABVUYE
3b8V3ib1NzPUE/9PwFsOG6jntPbT9v8BCyAPgz+7KI8x+//XJa9Ix+QshhmrPl5a
++CP27Vp8XgMRPAcKZkHT7MIUcAtxjyPq3D33wNl+ZTQtsRRNF38gyI5WwDKX9zv
LUBgPspXQtG7F1ibxvsHNS21967zb7ENJrXbjBx639ahCisMLUYsdvhj5OaeHIuu
VaD0mWbIzh/bToQ59hD5IvEz2ADifmGV/ReSi/WHcDB4n/Yjw3hYpOU2xOFz2jnP
EgkjYWSNjBF0E6IjgdRQXDDfy+CCgiLIOOOZLFGZ6mOZDgxQmitKiUu8FVyxOEZ2
4nxvMxrionJyJupR4WCjWsw++UeiscZonRNDaVcGj/+uNN3fkJF7nG1TwCOrN5sl
Om0AtXQIJjqAdGC7hvK0CwmQEBfCYL7ZrjEtCYYWjIq3OrpVR035Ov5W3UkPgb+d
Kb6yT3cHeKvduYh71+8wSozQ0WV0XNzPTKs2lZB+/SR5s4zWjhqow38cbOy/6QuB
q5bK2JXhCvIMyyZkPJF/
=oL5J
-----END PGP SIGNATURE-----

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

Reply via email to