Re: Accessing templates in jars

Keats Kirsch <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
My guess is that it has to do with which Broker you are using, which
depends on how you instantiate WM.  If you pass in a Servlet instance
(JSDK 2.2+) it will instantiate the Servlet22Broker which should find
the templates anywhere the Servlet class loader can find them.

Hope this helps.

Keats

Tim Pizey wrote:

>Hi, 
>
>Sorry, I am sure this is a FAQ, 
>but have not been able to find the answer. 
>
>I am building a war, using webmacro 2.0b1.
>
>I can access templates in the war file 
>(ie in the WEB-INF/classes directory) 
>but I cannot access templates in a jar 
>in the lib directory. 
>
>This seems to have been something which 
>none of the Melati users have found a 
>way around, so end up copying templates into 
>each project.
>
>
>yours
>TimP
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: InterSystems CACHE
>FREE OODBMS DOWNLOAD - A multidimensional database that combines
>robust object and relational technologies, making it a perfect match
>for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
>_______________________________________________
>Webmacro-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/webmacro-user
>
>  
>





-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.