[Simpleweb-Support] Nested vm calls?
Brought to you by:
niallg
|
From: Jack P. <jac...@th...> - 2004-10-31 19:19:57
|
It seems that you can locate a primary .vm file, but if that template
parses another one, there is an opportunity to get this kind of error:
java.lang.NullPointerException
at simple.http.serve.BasicResource.process(Unknown Source)
at simple.http.serve.BasicResource.handle(Unknown Source)
at simple.http.serve.BasicResource.handle(Unknown Source)
at simple.http.serve.ResourceProcessor.handle(Unknown Source)
This template provoked that exception:
#parse("css.vm")
<html>
<body>
<h1>Portal Hello World</h1>
#set($value = $content.centerBody)
$value
</body>
</html>
removing parse("css.vm") eliminated the exception.
A mitigating issue may be that I am not following precisely the tutorial
example. But, just asking for another template, as one can do when
running velocity under a different server, seems to fail.
Any ideas?
Thanks
Jack
|