2009/11/29 Aaron Freeman <aaron.free...@layerz.com> > I am working with 3.1, was wondering if there is a trick to allowing > recursive resin:imports? In other words I would like to resin:import a > file from within another file that was already resin:imported. >
I just tried it and it looks fine: My resin.conf contains this: <web-app id="/ext" root-directory="${resin.root}/conf"> <resin:import path="${resin.home}/conf/web-app-ext.conf"/> </web-app> The imported file '${resin.home}/conf/web-app-ext.conf' contains this: <web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> <resin:message>External configuration for web-app '${webApp.contextPath}' read from '${__FILE__}' ...</resin:message> <servlet servlet-name="directory" servlet-class="com.caucho.servlets.DirectoryServlet"> <init enable="true"/> </servlet> <resin:import path="${resin.home}/conf/jsp-ext.conf"/> </web-app> That imported file '${resin.home}/conf/jsp-ext.conf' contains this: <web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="http://caucho.com/ns/resin/core"> <resin:message>External configuration read from '${__FILE__}' ...</resin:message> <jsp> <!-- Return 404 when JSP source is deleted --> <require-source>true</require-source> <!-- if true, trims whitespace around JSP directives --> <trim-directive-whitespaces>true</trim-directive-whitespaces> </jsp> </web-app> When I start Resin, resin.conf will read web-app-ext.conf and also jsp-ext.conf: [15:28:08.562] {main} WebApp[http://localhost:8080/resin-admin] active [15:28:08.625] {main} External configuration for web-app '/ext' read from 'file:/C:/Downloads/resin-pro-3.1.9/conf/web-app-ext.conf' ... [15:28:08.625] {main} External configuration read from 'file:/C:/Downloads/resin-pro-3.1.9/conf/jsp-ext.conf' ... [15:28:08.640] {main} WebApp[http://localhost:8080/ext] active -- Steffen > > Thanks, > > Aaron > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest >
_______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest