Results 1 to 2 of 2

Thread: Configure external directory in spring

Hybrid View

  1. #1

    Default 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

    Thanks!

  2. #2
    Join Date
    Jul 2009
    Posts
    12

    Default

    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:

    http://www.summa-tech.com/blog/2009/...s-with-spring/

    http://chrislovecnm.com/2010/03/08/s...on-with-value/

    http://www.mkyong.com/spring/spring-...gurer-example/

Posting Permissions

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