Calling overridden superclass methods in VTL

2009-08-11 Thread Christopher Schultz
All, I was reading http://wiki.apache.org/jakarta-velocity/BuildingSecureWebApplications and I noticed that, about halfway down the page, there is this warning about creating subclass wrappers around objects: " Subclassing is not helpful as the template designer can call a method from a superclas

Re: Calling overridden superclass methods in VTL

2009-08-11 Thread Nathan Bubna
No, there was never such a feature. I think the statement should be something like: $reference.badMethodDefinedInSuperClass() The point seems to be that Velocity supports calling any public method of an object defined in a public class/interface, not merely those defined in the subclass. Which

Velocity URL Resource Loader: Resource Not Found

2009-08-11 Thread Mark Swinson
Hi, I'm having trouble access a template using URLResourceLoader using something similar to the following code: Properties p1 = new Properties(); p1.put("resource.loader","url"); p1.put("url.resource.loader.class", "org.apache.velocity.runtime.resource.loader.URLResourceLoader"); p1.put("