Hi seba, Let's keep it on the list. No secrets. ;)
> My problem is that I would like to set the loader programmatically. I do > not want to set up web.xml or similar. I just want to start jetty and > have the servlet initialisation code (or whatever initialisation code > must be) set the loader to the ClasspathResourceLoader, and finally have > templates read from the jar. If you aren't going to customise your web.xml, how are you going to let the servlet container know which servlet to use? Or am I missing something about jetty? Anyways, _if_ you're willing to edit your web.xml, it's as simple as setting your velocity.properties. http://jakarta.apache.org/velocity/tools/view/ > I have the idea that this should be doable by overriding > loadConfiguration() and setting something either in the Velocity runtime > or in the properties obtained by super.loadConfiguration( config ). > Again I could not find any examples about this. You got the picture! A partial sample can be found here: http://jakarta.apache.org/velocity/developer-guide.html#Miscellaneous%20Details Best regards, -- Shinobu -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]