I am trying something I haven't done previously with my directory structure,
by putting a "config" directory above my webroot to contain my framework
config files.  This seems to resolve properly using a Mach-II property of:
        <property name="ColdSpringComponentsLocation"
value="../config/coldspring.xml" />

Then in my ColdSpring plugin params, I have:
         <parameter name="configFilePropertyName"
value="ColdSpringComponentsLocation" />

>From the main ColdSpring config XML, I am including a variety of smaller
includes, and these all seem to resolve properly.  However, the dot-pathing
of the Beans themselves is off.

For instance, my directory structure looks like this:

   - config
      - ColdSpring.xml
   - www
      - com
         - model
            - user
               - UserDAO.cfc

When I ran this code previously with the ColdSpring config file sitting in
[webroot]/config/ColdSpring.xml, the DAO above would look like this:
    <bean id="UserDAO" class="com.model.user.UserDAO">
        <constructor-arg name="dsn"><value>${dsn}</value></constructor-arg>
    </bean>

After moving the config directory above the webroot, I now have to define
that same bean as:
    <bean id="UserDAO" class="www.com.model.user.UserDAO">
        <constructor-arg name="dsn"><value>${dsn}</value></constructor-arg>
    </bean>



I suppose my question is - How can I tell ColdSpring where my webroot
actually is?



~Dave Shuck
[EMAIL PROTECTED]
http://daveshuck.instantspot.com

Reply via email to