>> the recommendation is to use explicit >> configuration using either the Spring config file or Annotations. Why did >> the Struts team choose >> not to follow these recommendations?
>I don't think so, you can setup Spring-plugin to use autowiring by >type not by name and also Struts will ask Spring factory to create >given bean, if it can't create it, Struts will do it by self, and once >again will ask Spring to create dependencies and so on... This was not my experience. If Spring could not find the appropriate type it would fail. If it did find the appropriate type it would auto-wire it, meaning I had no chance to populate it manually. For this reason I would strongly suggest adding an autowire="no" configuration option to StrutsSpringObjectFactory that allows this to happen. This would also make it consistent with Spring, which has an autoWire="no" option (which is also the default). Cheers Peter _______________________________________________________________________ The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this e-mail must not be disclosed or copied without the sender's consent. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company. The company does not take any responsibility for the views of the author. Registered Office: IT-Freedom Limited, 9 Minster Court, Tuscam Way, Camberley, Surrey GU15 3YY Registered in England, Number: 04500346 _______________________________________________________________________