Return-Path: Delivered-To: apmail-roller-user-archive@www.apache.org Received: (qmail 79865 invoked from network); 30 Nov 2007 02:07:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Nov 2007 02:07:01 -0000 Received: (qmail 83323 invoked by uid 500); 30 Nov 2007 02:06:48 -0000 Delivered-To: apmail-roller-user-archive@roller.apache.org Received: (qmail 83295 invoked by uid 500); 30 Nov 2007 02:06:48 -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 83285 invoked by uid 99); 30 Nov 2007 02:06:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Nov 2007 18:06:48 -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.81] (HELO bosexfe1.digitas.com) (216.115.177.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2007 02:06:50 +0000 Received: from BOSEXVS1.digitas.com ([10.8.53.29]) by bosexfe1.digitas.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 29 Nov 2007 21:06:27 -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: Thu, 29 Nov 2007 21:06:26 -0500 Message-ID: In-Reply-To: <8fb9ac720711291802o2757ac56x1ee74fd7d61f3d0f@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: inserting java code in templates Thread-Index: Acgy9Sd7W2dsNmqjSPWj8iKa0JNa+AAAEbIQ References: <8fb9ac720711291802o2757ac56x1ee74fd7d61f3d0f@mail.gmail.com> From: "Prabhu Patil" To: X-OriginalArrivalTime: 30 Nov 2007 02:06:27.0786 (UTC) FILETIME=[9DEB02A0:01C832F5] X-Virus-Checked: Checked by ClamAV on apache.org Thanks Dave. I'll be all immersed in that post for next 15-20 minutes! -----Original Message----- From: Dave [mailto:snoopdave@gmail.com]=20 Sent: Thursday, November 29, 2007 8:02 PM To: user@roller.apache.org Subject: Re: inserting java code in templates On Nov 29, 2007 7:36 PM, Prabhu Patil wrote: > How do I insert Java code in the Roller template and be sure that it > gets processed. I need to add following 2 lines. When I tried, Roller > seems to neglect the Java lines and paints the page. > > <%@ include file=3D"/common/config.inc.jsp" %> > > > > Basically, I need to call custom tag functionality from the Roller > template. Is it possible?. Please respond ASAP as this is urgent. > Appreciate it. You cannot include Java or JSP code in a Roller template, Velocity is the template language. You can call out to Java objects, for example $model.weblog is actually a call to a Java getWeblog() method. So, it's possible that you could add some new model objects to Roller to do what you want and then call them from your templates. Here are some instructions I posted earlier that explain how to make new objects available in templates. http://markmail.org/message/jdrk5jw4tg2ynkdp - Dave