[Resin-interest] resin:import (3.1)

2009-11-29 Thread Aaron Freeman
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.

Thanks,

Aaron


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] resin:import (3.1)

2009-11-29 Thread Steffen Busch
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:messageExternal 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:messageExternal configuration read from '${__FILE__}'
.../resin:message

  jsp
!-- Return 404 when JSP source is deleted --
require-sourcetrue/require-source
!-- if true, trims whitespace around JSP directives --
trim-directive-whitespacestrue/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


Re: [Resin-interest] resin:import (3.1)

2009-11-29 Thread Aaron Freeman

 2009/11/29 Aaron Freeman aaron.free...@layerz.com 
 mailto: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:

Odd.  I will play with it some more and see what the user error is.  Thanks!

Aaron


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest