Announcement Announcement Module
Collapse
No announcement yet.
Spring IDE visibility for web apps Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    The behavior is the same for me - I do not know of any way to change it. Sorry!

    Comment


    • #3
      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

      Comment

      Working...
      X