Dave,
I'm struggling with the code that's needed to access this new Data Model
object.
I have added a new class by name AVCheck that has a public method called
checkAV.
I updated various properties in roller-custom.properties with my new
class.
Now, I changed the Weblog template to add following code:
#$AVCheck.checkAV('http://stage.millerliteracing.com/av.do')
However Roller does not seem to like this code. ( I have also tried
#$aVCheck.checkAV('http://stage.millerliteracing.com/av.do'))
Could you help?
Thanks a bunch,
-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 29, 2007 10:22 PM
To: [email protected]
Subject: Re: inserting java code in templates
On Nov 29, 2007 10:29 PM, Prabhu Patil <[EMAIL PROTECTED]> wrote:
> Dave,
> I coded a new class called AVCheck and added it to roller.properties
as
> mentioned in your post.
>
> How do I instantiate an (Or how do I tell Roller to instantiate an
> object) so that I can access it in my template?
You've got to include the classname in the right properties in your
roller-custom.properties file.
See the email I referenced before:
http://markmail.org/message/jdrk5jw4tg2ynkdp
- Dave