On 9/9/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
I want to set the value of the spring bean defined in the spring xml file. I have the value in the action but I want to set the spring bean's value with it.
Given a matching property, Struts 2 can automatically inject a Spring bean into the Action. Set the beans to autowire and autodect <beans default-autowire="autodetect"> .... </beans> And then create a JavaBean property on your Action that matches the Spring bean ID. Be sure that the bean ID name starts with a lowercase letter. The framework will notice that the Action property name matches the Spring bean ID, and set the Spring bean to the property. For more, see http://cwiki.apache.org/WW/spring.html HTH, Ted. * http://husted.com/struts --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]