roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prabhu Patil" <ppa...@digitas.com>
Subject RE: inserting java code in templates
Date Fri, 30 Nov 2007 15:56:09 GMT
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:snoopdave@gmail.com] 
Sent: Thursday, November 29, 2007 10:22 PM
To: user@roller.apache.org
Subject: Re: inserting java code in templates

On Nov 29, 2007 10:29 PM, Prabhu Patil <ppatil@digitas.com> 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

Mime
View raw message