Re: [Simpleweb-Support] Need help with Simple 3.1.3
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2006-05-25 14:33:12
|
Hi, To use the Mapper.xml file you should use MapperEngine instead of LoaderEngine. The Mapper.xml file is located using the Context.getLocator. This is like a ClassLoader for configuration. You must provide it with a search path. For example: File root = new File("C:\www"); File[] search = new File[]{ new File("C:\conf"), new File("C:\www\conf2")}; Context c = new FileContext(root, search); MapperEngine e = new MapperEngine(c); Now if there is a c:\conf\Mapper.xml or a C:\www\conf2\Mapper.xml it will be loaded by the MapperEngine using the provided Context.getLocator. The javadoc should provide more details. Niall --- Vincent Etter <vin...@gm...> wrote: > Hi Niall ! > > Thanks a lot for your answer ! This is exactly what > I needed ! > > I have one last question : > > How can I use the Mapper.xml file ? I mean, where > can I say that I want this > file to be used ? > > Thanks in advance for your answer and for your > (great) work ! > > Vincent > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |