Announcement Announcement Module
No announcement yet.
Configure external directory in spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configure external directory in spring

    Hello all,

    How do i configure an external directory path in spring.

    One way of doing this i found out is by putting it inside apache tomcat conf/Catalina/localhost/extdir.xml

    <Context path="/extdir" docBase="C:\temp\" crossContext="true"/>

    But if theres any way of putting it inside the dispatcher-servlet.xml then it would be great.

    Please guide me as to how can i achieve it.
    Or where should i be looking inside the documentation and under what topic


  • #2
    Per the documentation for Tomcat 6.0:

    The Context element represents a web application, which is run within a particular virtual host.
    If all you're looking to do is configure a directory path as a string, then there are several ways to accomplish this, but adding a Tomcat context would not be the right approach. The easiest way is to use a property file. You can read more at the following links: