Thilo said:
...
> it took me a while to figure out why my overridden method did'nt have a
> chance to get called, the reason is the usage of "super" in the following
> code snippet from
> org.apache.velocity.tools.view.servlet.VelocityViewServlet:
>
> <snippet>
> initVelocity( ServletConfig config )
> {
> [...]
> Properties p = super.loadConfiguration(config);
> </snippet>
>
> Could this possibly be changed to Properties p =
loadConfiguration(config);?
>
> In case it was actually intended to be (not a good idea I think), would'nt
> it be rather better to declare loadConfiguration as final?
actually, i've been pulling all the VelocityServlet code down into the
VelocityViewServlet class (as per recent discussion here) in order to
ease/end our dependency on velocity's release schedule. i should be
checking that in in the next day or so (at which point, this problem you
mention will disappear).
also, on a side note, i've tweaked the WebappLoader to accept/use a relative
path set for it in the velocity.properties (like the FileResourceLoader,
except only taking one path value, not a list of them). this will allow you
to do what you were posting about earlier.
Nathan Bubna
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]