roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prabhu Patil" <>
Subject RE: inserting java code in templates
Date Fri, 30 Nov 2007 21:12:02 GMT
I'm almost there, but for one last thing. I need the HTTPServletResponse
object in the new Model object I wrote. What's the key to retrieve
response object from Roller's params Map?

Thanks so much.


-----Original Message-----
From: Dave [] 
Sent: Friday, November 30, 2007 10:25 AM
Subject: Re: inserting java code in templates

On Nov 30, 2007 10:56 AM, Prabhu Patil <> wrote:
> Dave,
> I'm struggling with the code that's needed to access this new Data
> object.
> I have added a new class by name AVCheck that has a public method
> checkAV.
> I updated various properties in with my new
> class.
> Now, I changed the Weblog template to add following code:
> #$AVCheck.checkAV('')
> However Roller does not seem to like this code. ( I have also tried
> #$aVCheck.checkAV(''))
> Could you help?

Read up on the Velocity Template Language:

And Roller Template authoring via the Template Guide:

Those should answer your questions.

- Dave

View raw message