> -----Original Message----- > From: KARR, DAVID (ATTCINW) > Sent: Monday, August 31, 2009 1:25 PM > To: user@struts.apache.org > Subject: Any way to inject Spring bean properties into Struts plugin > properties? > > It's been quite a while since I've been in here, and I have some > questions about things just about that old. :) > > I've been asked to look at an app using Struts 1.2.7, to see whether I > can change it from using build-time environment properties to run-time, > using Spring. I've read about > (http://cwiki.apache.org/WW/spring.html), > which describes how to inject Spring bean properties into Action > properties. As the last-edited date on that page (2006) came just a > little bit after Struts 1.2.7 (in geologic time, at least :) ), I would > assume that advice is relevant to 1.2.7.
After looking at the Spring injection page again, I see the possibility that this only works with Struts2. Is that correct? > However, the property values I need to inject are not in Action beans, > but in the plugin class specified in the Struts config.xml. Will the > previous advice about implementing Spring injection work exactly the > same with the plugin class, as it does with the Action class? > > Also, there's another even older app that is apparently using Expresso, > and which also has issues of build-time environment properties. I > can't > even find any mention of a possibility of injecting Spring properties > into Expresso classes. Is there any possibility of that? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org