Re: [Simpleweb-Support] Nested vm calls?
Brought to you by:
niallg
|
From: Niall G. <ni...@em...> - 2004-12-13 05:29:28
|
Hi,
It seems that you are using an old version of Simple. However my guess is t=
hat your Context is null. Sorry for the delay in replying, there seems to b=
e some problem with the sourceforge mail archives as I can remember respond=
ing to this around the start of November.
Niall
----- Original Message -----
From: "Jack Park" <jac...@th...>
To: sim...@li...
Subject: [Simpleweb-Support] Nested vm calls?
Date: Sun, 31 Oct 2004 11:19:56 -0800
>=20
> It seems that you can locate a primary .vm file, but if that=20
> template parses another one, there is an opportunity to get this=20
> kind of error:
>=20
> 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)
>=20
> This template provoked that exception:
>=20
> #parse("css.vm")
> <html>
> <body>
> <h1>Portal Hello World</h1>
> #set($value =3D $content.centerBody)
> $value
> </body>
> </html>
>=20
> removing parse("css.vm") eliminated the exception.
> A mitigating issue may be that I am not following precisely the=20
> tutorial example. But, just asking for another template, as one can=20
> do when running velocity under a different server, seems to fail.
>=20
> Any ideas?
> Thanks
> Jack
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=3D5588&alloc_id=3D12065&op=3Dclick
> _______________________________________________
> Simpleweb-Support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simpleweb-support
--=20
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
|