RE: Accessing templates in jars

"Tim Pizey" <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
 
Hi Keats, Lane, 
Thanks for bearing with me. 

Keats Kirsch wrote:
> 
> 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.
> 
WM is instantiated with wm = new WM ()
see 
http://www.melati.org/xref/org/melati/template/webmacro/WebmacroTemplateEngi
ne.html


I am not using a WebMacro.properties file.
In wiki the WebMacro.properties file does not change the defaults.

I have checked out webmacro and wiki from cvs. 
I see that I am not expected to be constructing 
a WM without passing in a servlet, but Melati is able to 
work outside of a servlet environment. 

Servlet22Broker is only mentioned once in WebMacro.defaults.classic

How do I check what Broker I have got and change it if necessary?

yours
tim






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
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.