Results 1 to 3 of 3

Thread: Spring IDE visibility for web apps

  1. #1
    Join Date
    Dec 2007
    Posts
    130

    Default Spring IDE visibility for web apps

    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:

    Code:
    	<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>
    The servlet context is divided as well

    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>
    I enabled the Spring nature, and added the files of both context as config files.

    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.

  2. #2
    Join Date
    Mar 2009
    Posts
    4

    Default

    The behavior is the same for me - I do not know of any way to change it. Sorry!

  3. #3
    Join Date
    Aug 2004
    Location
    Duesseldorf, Germany
    Posts
    1,210

    Default

    Hello,

    unfortunately those visibility restrictions are currently not supported by Spring IDE. You may want to raise an enhancement request at jira.springframework.org as this seems to be very reasonable requirement.

    Thanks,

    Christian
    Christian Dupuis
    SpringSource, a division of VMware
    Lead, SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/cdupuis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •