Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 29701 invoked from network); 30 Nov 2007 15:56:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 15:56:45 -0000 Received: (qmail 13006 invoked by uid 500); 30 Nov 2007 15:56:34 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 12978 invoked by uid 500); 30 Nov 2007 15:56:34 -0000 Mailing-List: contact user-help@roller.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@roller.apache.org Delivered-To: mailing list user@roller.apache.org Received: (qmail 12964 invoked by uid 99); 30 Nov 2007 15:56:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 07:56:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.115.177.82] (HELO bosexfe2.digitas.com) (216.115.177.82) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 15:56:33 +0000 Received: from BOSEXVS1.digitas.com ([10.8.53.29]) by bosexfe2.digitas.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 30 Nov 2007 10:56:10 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: inserting java code in templates Date: Fri, 30 Nov 2007 10:56:09 -0500 Message-ID: In-Reply-To: <8fb9ac720711292021wdfe4d78r4e382342df494c74@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: inserting java code in templates Thread-Index: AcgzCJ+YtmcXbpoVT7Sx4Sa7KHRvKAAXUcXQ References: <8fb9ac720711291802o2757ac56x1ee74fd7d61f3d0f@mail.gmail.com> <8fb9ac720711291852y2de1a534u76e045e7cc69810a@mail.gmail.com> <8fb9ac720711292021wdfe4d78r4e382342df494c74@mail.gmail.com> From: "Prabhu Patil" To: X-OriginalArrivalTime: 30 Nov 2007 15:56:10.0707 (UTC) FILETIME=[86D9EA30:01C83369] X-Virus-Checked: Checked by ClamAV on apache.org 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]=20 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 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