|
From: Darren D. <dda...@kg...> - 2003-12-04 15:05:09
|
> now here comes the problem... in the applicationSpecication.xml file > i have defined a simple DAO bean (<bean id="beanService"... etc>) > > and from the servlet-name.xml i refer to this bean in the definition > of my Controller: > > <bean id="myController" class="myControllerClass"> > <property name="myService"><ref bean="beanService"></property> > </bean> the default name for the file is 'applicationContext.xml' rather than 'applicationSpecification.xml'. If you don't use the default name, you have to declare this in your web.xml as follows.. <web-app> ... <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationSpecification.xml</param-value> </context-param> ... </web-app> hth, Darren. -- Darren Davison Public Key: http://www.davison.uk.net/key.jsp |