graeder
Apr 27th, 2006, 09:18 AM
In ch.14 of "Java Development with the Spring Framework" there is an example of how to autowire a struts base action class. I'm following the example, but it doesn't look like the spring api I'm using (1.2.7) matches up with the example code in he book. Can someone give me some insight as to how to actually implement this? Here's the code from the book:
protected void onInit() {
getWebApplicationContext().getParentBeanFactory(). autoWireByType(this,
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE,true);
}
protected void onInit() {
getWebApplicationContext().getParentBeanFactory(). autoWireByType(this,
AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE,true);
}