[Simpleweb-Support] Multiple File Roots
Brought to you by:
niallg
From: Brian D. <wic...@gm...> - 2005-11-28 16:55:11
|
Hi I am using a FileContext with a LoaderEngine to set the 'root' of the web server. FileContext context =3D new FileContext(new File("webserverroot/"))= ; LoaderEngine engine =3D new LoaderEngine(context); This works just dandy.. but I would like to support the concept of multiple server roots... Do I have to rewrite the LoaderEngine to accomplish this? LoaderEngine engine =3D new LoaderEngine(); engine.addContext(new FileContext(new File("root1")); engine.addContext(new FileContext(new File("root2")); Also.. would be nice if the resolver tried to resolve in root1.. then root2.. then fail.. Any help would be much appreciated.. Thanks! Brian |