-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 All,
On 10/15/15 2:58 PM, Christopher Schultz wrote: > 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)? After posting the above, I realized that I could override the default ActionMapping object for a single action, which is less chaotic than I had originally thought (I thought the ActionMapping class had to be global). So this is working quite well, now. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJWJmDwAAoJEBzwKT+lPKRYJuAP/2JU7ybzd9vJ+u8qryE3/+ts F08RoD7pu3Fh8BEG7dVan4tcPFdcFrAOWC+afFhoeD15g3coW+7uXzID03rCbaEW jhKwn/20AsIqQn6vYyiv1qof6s9WkpWu04FeYbGlvuu+miJEu4NG9/Kqz/V/hAZY 4V20PykFN01mKLT8I9SS9DubS0NL47YK81ZS16Y0bfyBKG1ZZgLXoH4bPhhhV3MC s/y7JqD6FKF0MI0yqBFIaaMRmtAZ72zxAPogFHw32KEFn8+Bw9hLsu3XEm/ZjeqO OB03P7e6tBSH86WOt75b2mmver2+I7hQPK/GNsbbOJp9Uzd/xd0FH+F9+01R0UH0 jHA/j7MtzOCTMxoAzc7/VsVFxkilciz2tfOnyhy5VuHZcKcfMspU8O2aWnh+0N/z G70T6pkWyUFSrDdDdpOCbc9+rvboi5i13Hgd7mEe0cPp6av8xv/BMIaEtH1RH16R dMIHn6yGbwyZHJyBbMi6Cw/4Ou2Zwwr82QO96SIvXqX37XNlTvhSQ0/P7p0ktrO3 rh+5tBR6Xvls0PTGq7b3aVSn37ox/JMUWJiG49cTGyGQvrZ8q8uEVsivXRAqO/Pm XgwVfd+7BaOrx7DD8O1bCS7dAyvVj+sXwPrQsnNC/7oMap+YhNOh8buwqh8K6zhm c/aY7N3YQctQNjQSd3Nz =WUhf -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org