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?

Thanks,

-----Original Message-----
From: Dave [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 29, 2007 8:53 PM
To: [email protected]
Subject: Re: inserting java code in templates

On Nov 29, 2007 9:37 PM, Prabhu Patil <[EMAIL PROTECTED]> wrote:
> Dave,
> I'm using Roller 3.1 and PageModel is a concrete type in 3.1. I coded
my
> object half-way by extending the PageModel. But then again, it did not
> seem right thing to do as PageModel object needs to be initialized.
> What's the way around it? (Seems like I can implement Model ?)
>
> Also the other thing is I need access to HttpServletRequest inside
this
> new object. How do I get it?
>
> Appreciate your answers.

Yep, you are correct. You implement Model.

The example shows how to do that and how to get the request.
http://tinyurl.com/2pnpn3

- Dave

Reply via email to