I am working on a web app, and I have just installed Spring IDE, which seems very useful.
Eclipse Ganymede 3.4.1, Spring 2.5.3, Tomcat 5.5.23
The main context is divided into several files to make it manageable:
The servlet context is divided as wellCode:<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/applicationContext.xml /WEB-INF/applicationContext-dao.xml /WEB-INF/applicationContext-manager.xml /WEB-INF/applicationContext-sesion.xml /WEB-INF/applicationContext-conversor.xml /WEB-INF/applicationContext-filter.xml </param-value> </context-param>
I enabled the Spring nature, and added the files of both context as config files.Code:<servlet> <servlet-name>action</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/action-servlet.xml /WEB-INF/action-servlet-gestionpersonal.xml /WEB-INF/action-servlet-mantenimiento.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
The problem is that the completion assistant allows me to put beans from the servlet context in the main context, but they are not really available when I startup application
Is there anyway to configure it so that main context beans are visible for autocompletion in servlet configuration files, but not the opposite.


Reply With Quote