On Tue, Jan 28, 2003 at 07:50:56PM +1100, Scott Farquhar wrote:

> - Getting the templates (using servletPath).
> Some servlet containers have problems with getRealPath().  We can always 
> bundle default templates in the jar (a plus), but how do we access the 
> templates?  Rickard seems to do it with his WebWorkVelocityServlet - but 
> I'm not sure how.

Thread.currentThread().getContextClassLoader().getResourceAsStream("/path/relative/to/web/roo")
should do the trick. I recently changed my local version of the
XSLTServlet to access the xslt stylesheets in this way. Could someone
please give me cvs access again, then I could check in my improvements.

-billy.

-- 
Meisterbohne       Söflinger Straße 100          Tel: +49-731-399 499-0
   eLösungen       89077 Ulm                     Fax: +49-731-399 499-9

Attachment: msg01413/pgp00000.pgp
Description: PGP signature

Reply via email to