From velocity-user-returnjohnmartin@example.com Sat Nov 04 10:32:49 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 91161 invoked from network); 4 Nov 2006 10:32:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Nov 2006 10:32:49 -0000 Received: (qmail 24889 invoked by uid 500); 4 Nov 2006 10:33:00 -0000 Delivered-To: johnmartin@example.com Received: (qmail 24364 invoked by uid 500); 4 Nov 2006 10:32:58 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 93119 invoked by uid 99); 3 Nov 2006 21:15:44 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: <johnmartin@example.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: johnmartin@example.com From: Timothy Stone <johnmartin@example.com> Subject: set directive and CSS syntax Date: Fri, 3 Nov 2006 16:15:08 -0500 X-Mailer: Apple Mail (2.752.2) X-Provags-ID: perfora.net johnmartin@example.com login:cc8f2e2326446829c1b030dcda0c3df2 X-Virus-Checked: Checked by ClamAV on apache.org So we have set a bunch of variables to use as inline CSS directives in HTML emails. For example: #set( $div_header = "height: 125px; padding: 0 10px 0 0; color: #13aaf3; background: white url('${IMAGE_SERVER}/path/to/image') top left repeat-x; font-size: 18px;") Note that the "url" is single quoted. I noted this was a problem and removed them, leaving: #set( $div_header = "height: 125px; padding: 0 10px 0 0; color: #13aaf3; background: white url(${IMAGE_SERVER}/path/to/image) top left repeat-x; font-size: 18px;") This did not seem to correct the problem we are having and I'm attributing it to the "url(${IMAGE_SERVER}/path/to/image)" portion itself. Is Velocity misinterpreting the url() call as a VM, or something else? Thanks, Tim --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Mon Nov 06 06:04:45 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 59476 invoked from network); 6 Nov 2006 06:04:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 6 Nov 2006 06:04:45 -0000 Received: (qmail 35111 invoked by uid 500); 6 Nov 2006 06:04:54 -0000 Delivered-To: johnmartin@example.com Received: (qmail 35094 invoked by uid 500); 6 Nov 2006 06:04:54 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 35082 invoked by uid 99); 6 Nov 2006 06:04:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Nov 2006 22:04:54 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO py-out-1112.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Nov 2006 22:04:40 -0800 Received: by py-out-1112.google.com with SMTP id a25so1044747pyi for <johnmartin@example.com>; Sun, 05 Nov 2006 22:04:19 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=alKWPqCxFslumtlZqJf397qmfclmr3N0C8LPNIyKo/ZXOTAsCTYxk7wJl624KcHri9kDrSdoLwvnOYqjL5xPwnQZ73M9MIkj+v3VfKDfG17p1HGQG/kIs9yKfFyjUoqqLqyTMmDIpVmGu4xoPLw10SNhEz/qwHYpUUAI2LfgOKo= Received: by 83.161.120.155 with SMTP id q17mr9792180pyj.1162793059661; Sun, 05 Nov 2006 22:04:19 -0800 (PST) Received: by 83.161.120.155 with HTTP; Sun, 5 Nov 2006 22:04:19 -0800 (PST) Message-ID: <johnmartin@example.com> Date: Sun, 5 Nov 2006 22:04:19 -0800 From: "Will Glass-Husain" <johnmartin@example.com> Sender: johnmartin@example.com To: "Velocity Users List" <johnmartin@example.com> Subject: Re: set directive and CSS syntax In-Reply-To: <johnmartin@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <johnmartin@example.com> X-Google-Sender-Auth: 0a5415a688ea125f X-Virus-Checked: Checked by ClamAV on apache.org The Velocity syntax looks ok to me. The quotes don't matter, they are outside of the reference. On 11/3/06, Timothy Stone <johnmartin@example.com> wrote: > So we have set a bunch of variables to use as inline CSS directives > in HTML emails. > > For example: > > #set( $div_header = "height: 125px; padding: 0 10px 0 0; color: > #13aaf3; background: white url('${IMAGE_SERVER}/path/to/image') top > left repeat-x; font-size: 18px;") > > Note that the "url" is single quoted. I noted this was a problem and > removed them, leaving: > > #set( $div_header = "height: 125px; padding: 0 10px 0 0; color: > #13aaf3; background: white url(${IMAGE_SERVER}/path/to/image) top > left repeat-x; font-size: 18px;") > > This did not seem to correct the problem we are having and I'm > attributing it to the > "url(${IMAGE_SERVER}/path/to/image)" portion itself. > > Is Velocity misinterpreting the url() call as a VM, or something else? > > Thanks, > Tim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: johnmartin@example.com > For additional commands, e-mail: johnmartin@example.com > > -- Forio Business Simulations Will Glass-Husain johnmartin@example.com www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Tue Nov 07 14:42:22 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 4205 invoked from network); 7 Nov 2006 14:42:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Nov 2006 14:42:21 -0000 Received: (qmail 35063 invoked by uid 500); 7 Nov 2006 14:42:30 -0000 Delivered-To: johnmartin@example.com Received: (qmail 35050 invoked by uid 500); 7 Nov 2006 14:42:30 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 35039 invoked by uid 99); 7 Nov 2006 14:42:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 06:42:30 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO blr02.bynum.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 06:42:16 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: graph X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Date: Tue, 7 Nov 2006 08:38:16 -0600 Message-ID: <johnmartin@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: graph Thread-Index: Acb//Bpy7bi6Tcn/SjSO3FjVPSBEBACfXk7A From: "jill han" <johnmartin@example.com> To: "Velocity Users List" <johnmartin@example.com> X-Virus-Checked: Checked by ClamAV on apache.org I have a turbine/torque/velocity application. I want to add some graphs to the web page. The data will be retrieved from the DB. Is there any tools out there to do the job? What kind of tool do you use to create a graph? Is there any recommendations? Thanks a lot for your help. Jill --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Tue Nov 07 14:45:54 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 5104 invoked from network); 7 Nov 2006 14:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Nov 2006 14:45:54 -0000 Received: (qmail 40802 invoked by uid 500); 7 Nov 2006 14:46:03 -0000 Delivered-To: johnmartin@example.com Received: (qmail 40653 invoked by uid 500); 7 Nov 2006 14:46:03 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 40634 invoked by uid 99); 7 Nov 2006 14:46:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 06:46:03 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO exprod8og57.obsmtp.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 07 Nov 2006 06:45:47 -0800 Received: from source ([83.161.120.155]) by exprod8ob57.obsmtp.com ([83.161.120.155]) with SMTP; Tue, 07 Nov 2006 06:41:24 PST Received: from ms2.lsc.net ([83.161.120.155]) by ms3.lsc.net with Microsoft SMTPSVC219.257.5997); Tue, 7 Nov 2006 14:44:56 +0000 Received: from [83.161.120.155] ([83.161.120.155]) by ms2.lsc.net with Microsoft SMTPSVC219.257.5997); Tue, 7 Nov 2006 14:44:56 +0000 Message-ID: <johnmartin@example.com> Date: Tue, 07 Nov 2006 14:44:55 +0000 From: Paul Loy <johnmartin@example.com> Reply-To: johnmartin@example.com Organization: Peoples Archive User-Agent: Thunderbird 83.161.120.155 (Macintosh/20060909) MIME-Version: 1.0 To: Velocity Users List <johnmartin@example.com> Subject: Re: graph References: <johnmartin@example.com> In-Reply-To: <johnmartin@example.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 07 Nov 2006 14:44:56.0117 (UTC) FILETIME=[4AB83E50:01C7027B] X-Virus-Checked: Checked by ClamAV on apache.org I'd have a look at jgraph: http://www.jgraph.com/jgraph.html You'll be able to make images on the fly and insert them into your web page. I'm never sure about trying to make graphs using html elements as it's almost guaranteed to break on different browsers whereas an image is browser safe! Paul. jill han wrote: > I have a turbine/torque/velocity application. > I want to add some graphs to the web page. The data will be retrieved > from the DB. Is there any tools out there to do the job? > What kind of tool do you use to create a graph? Is there any > recommendations? > Thanks a lot for your help. > > Jill > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: johnmartin@example.com > For additional commands, e-mail: johnmartin@example.com > > This email has been scanned by Postini. For more information please visit http://www.postini.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Tue Nov 07 15:18:49 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 15898 invoked from network); 7 Nov 2006 15:18:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Nov 2006 15:18:49 -0000 Received: (qmail 19984 invoked by uid 500); 7 Nov 2006 15:18:58 -0000 Delivered-To: johnmartin@example.com Received: (qmail 19971 invoked by uid 500); 7 Nov 2006 15:18:58 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 19959 invoked by uid 99); 7 Nov 2006 15:18:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 07:18:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ug-out-1314.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 07:18:44 -0800 Received: by ug-out-1314.google.com with SMTP id o4so355821uge for <johnmartin@example.com>; Tue, 07 Nov 2006 07:18:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jtRQ8xG6fQhNhS47psg+20mDW7hbO9jur6hpY/4MP6DeLB2Op2zoi24meglOPxlBJq4f7k9xzj1MWS/AOFOmKCKk1pZDWa9iU6aGvioF6nQRApGdqfekHbCrBD9wOXjgTHd5yCxM4fhYVnlrtKdVTYJOS6uVfgd7U6URckdV5ek= Received: by 83.161.120.155 with SMTP id n2mr1522107buf.1162912701566; Tue, 07 Nov 2006 07:18:21 -0800 (PST) Received: by 83.161.120.155 with HTTP; Tue, 7 Nov 2006 07:18:21 -0800 (PST) Message-ID: <johnmartin@example.com> Date: Tue, 7 Nov 2006 07:18:21 -0800 From: "Nathan Bubna" <johnmartin@example.com> To: "OSullivan, Aidan (CE)" <johnmartin@example.com> Subject: Re: Standalone Velocity toolbox Cc: "Velocity Users List" <johnmartin@example.com> In-Reply-To: <johnmartin@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <johnmartin@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Please keep user questions on the user list, so that answers can be archived for others to find. MessageTool is pretty firmly tied Struts and the servlet environment at this point. At a minimum, you would have to override the init() and getResources() methods to load a Struts MessageResources instance from a standalone environment. I've done some work on a generic TextTool, but it is not ready for consumption yet. On 11/7/06, OSullivan, Aidan (CE) <johnmartin@example.com> wrote: > Hi Nathan, > > I found you email address among the velocity-user mailing list archives, and was hoping you could help. > > I wish to call the MessageTool class to localize strings in a standalone app I have which uses Velocity. I have seen the examples for web apps, but havent figured out a way to do it for standalone apps. I tried adding the tool into my VelocityContext under a "text" key, but of course it cant find the resource properties. > > Any ideas? Thanks a lot, > > Aidan OSullivan > Dublin, > Ireland > > > *************************************************************************************************** > The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. > *************************************************************************************************** > > --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Tue Nov 07 15:27:14 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 18380 invoked from network); 7 Nov 2006 15:27:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Nov 2006 15:27:14 -0000 Received: (qmail 39180 invoked by uid 500); 7 Nov 2006 15:27:22 -0000 Delivered-To: johnmartin@example.com Received: (qmail 39163 invoked by uid 500); 7 Nov 2006 15:27:22 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 39152 invoked by uid 99); 7 Nov 2006 15:27:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 07:27:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0102.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 07:27:02 -0800 Received: by nz-out-0102.google.com with SMTP id 13so1254568nzn for <johnmartin@example.com>; Tue, 07 Nov 2006 07:26:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ruUZlhqJSfnH5QIwFYj25lYeM3gX+mL/bOBKhGgsNf2G/p1KkJNTjbxGzT9NJBuRH7N/a7Xd5w03XIcWYYAronZdwv80do82pJt5UTL3ksBVBwIr2K4CTdBtXs/Cbgyr2FxpRZnHz5VD9fw3aoqOKGQEeLDUlpnrhxX0l/NJYHA= Received: by 83.161.120.155 with SMTP id y9mr9302041pym.1162913186444; Tue, 07 Nov 2006 07:26:26 -0800 (PST) Received: by 83.161.120.155 with HTTP; Tue, 7 Nov 2006 07:26:26 -0800 (PST) Message-ID: <johnmartin@example.com> Date: Tue, 7 Nov 2006 07:26:26 -0800 From: "Will Glass-Husain" <johnmartin@example.com> Sender: johnmartin@example.com To: "Velocity Users List" <johnmartin@example.com> Subject: Re: graph In-Reply-To: <johnmartin@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <johnmartin@example.com> X-Google-Sender-Auth: 8cdf7b7bab70e05d X-Virus-Checked: Checked by ClamAV on apache.org Hi, JFreeChart seems to be the most popular Java open source graphing tool. http://www.jfree.org/jfreechart/ I've used KavaCharts, which is as inexpensive commercial option http://www.ve.com/kavachart/index.html And here is a HTML-only graphing library http://webfx.eae.net/dhtml/chart/chart.html Will On 11/7/06, jill han <johnmartin@example.com> wrote: > I have a turbine/torque/velocity application. > I want to add some graphs to the web page. The data will be retrieved > from the DB. Is there any tools out there to do the job? > What kind of tool do you use to create a graph? Is there any > recommendations? > Thanks a lot for your help. > > Jill > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: johnmartin@example.com > For additional commands, e-mail: johnmartin@example.com > > -- Forio Business Simulations Will Glass-Husain johnmartin@example.com www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Tue Nov 07 22:01:18 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 66063 invoked from network); 7 Nov 2006 22:01:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 7 Nov 2006 22:01:18 -0000 Received: (qmail 19916 invoked by uid 500); 7 Nov 2006 22:01:26 -0000 Delivered-To: johnmartin@example.com Received: (qmail 19892 invoked by uid 500); 7 Nov 2006 22:01:26 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 19875 invoked by uid 99); 7 Nov 2006 22:01:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 14:01:26 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO inter7.jp) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 14:01:07 -0800 Received: from unknown ([83.161.120.155] helo=inter7.jp) via TCP with SMTP id mel6944f1be552ebd65c5a4564b46d376dc0b78556c46; Wed, 08 Nov 2006 07:00:04 +0900 From: trad-ex <johnmartin@example.com> To: "Velocity Users List" <johnmartin@example.com> Subject: Re: graph Date: Wed, 08 Nov 2006 07:00:04 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: <johnmartin@example.com> References: <johnmartin@example.com> Message-Id: <johnmartin@example.com> X-Mailer: HidemaruMail 4.67 (WinNT,501) X-Virus-Checked: Checked by ClamAV on apache.org Hi Jill I'm using velocity and JSGraph, http://homepage3.nifty.com/slokar/js/jsgraph.html and Yahoo! UI http://developer.yahoo.com/yui/ to develop the interactive curve chart in my internal portal. Best regards, trad-ex >I have a turbine/torque/velocity application. >I want to add some graphs to the web page. The data will be retrieved >from the DB. Is there any tools out there to do the job? >What kind of tool do you use to create a graph? Is there any >recommendations? >Thanks a lot for your help. > >Jill > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: johnmartin@example.com >For additional commands, e-mail: johnmartin@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Wed Nov 08 10:26:01 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 45480 invoked from network); 8 Nov 2006 10:26:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 8 Nov 2006 10:26:01 -0000 Received: (qmail 64185 invoked by uid 500); 8 Nov 2006 10:26:09 -0000 Delivered-To: johnmartin@example.com Received: (qmail 64168 invoked by uid 500); 8 Nov 2006 10:26:09 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 32280 invoked by uid 99); 7 Nov 2006 17:58:35 -0000 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=W5SOCvdhOcrDIuplxfhvn6QV84Ixtb3Ndu9m4f03vSxZVIapcYk01jXqeQ/soir9TcyIs6yOwF+6QRTYR+BcWHTzRmIorbHeI8qibEIJhLoO1VmhWedPtl9PxgbLCAc3nV+u4Q0MIPASSRH2vwPmB0HPqHCWARjx/pz7lAyWXLI= Message-ID: <johnmartin@example.com> Date: Tue, 7 Nov 2006 15:57:58 -0200 From: "Angelo Luis" <johnmartin@example.com> To: johnmartin@example.com Subject: 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 LOAD A TEMPLATE FROM A EAR... MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7366_11934769.1162922278815" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_7366_11934769.1162922278815 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm trying to load a template from a EAR project... but i cannot undestand why my tempalte is not load... i trying everything i kwon but with no success here is my code, the velocity.properties is in the war inside EAR e the template in the ejb module in the package com.test: velocity.propreties (in the war) resource.loader=class class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader runtime.log.logsysten.class=org.apache.velocity.runtime.log.SimpleLog4JLogSystem my code to retrive the template: ServletContext servletContext = ((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext()); String file = servletContext.getRealPath("velocity/velocity.properties"); Properties properties = new Properties(); properties.load(new FileInputStream(file)); VelocityManager.init(properties); Template t = VelocityManager.getTemplate("com/test/template.vm"); // create a context Context context = ContextFactory.getInstance(); // populate with model data ModelBean model = getModel(); context.put(model.getModelName(), model); teh exception: Caused by: org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'johnmartin@example.com (ResourceManagerImpl.java:458) at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource( ResourceManagerImpl.java:341) at org.apache.velocity.runtime.RuntimeInstance.getTemplate( RuntimeInstance.java:831) at org.apache.velocity.runtime.RuntimeInstance.getTemplate( RuntimeInstance.java:813) at org.apache.velocity.app.VelocityEngine.getTemplate( VelocityEngine.java:470) at com.open.velocity.framework.VelocityManager.getTemplate( VelocityManager.java:59) at com.open.velocity.framework.AbstractVelocityContentTemplate.generate( AbstractVelocityContentTemplate.java:32) ... 135 more ------=_Part_7366_11934769.1162922278815-- From velocity-user-returnjohnmartin@example.com Thu Nov 09 09:38:37 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 85128 invoked from network); 9 Nov 2006 09:38:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Nov 2006 09:38:36 -0000 Received: (qmail 13436 invoked by uid 500); 9 Nov 2006 09:38:44 -0000 Delivered-To: johnmartin@example.com Received: (qmail 13428 invoked by uid 500); 9 Nov 2006 09:38:44 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 13417 invoked by uid 99); 9 Nov 2006 09:38:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 01:38:44 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO hermes-ldn.macmillan.co.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 01:38:30 -0800 Received: from mpl-ldn-exc2.mpl.root-domain.org ([83.161.120.155]) by hermes-ldn.macmillan.co.uk with ESMTP; 09 Nov 2006 09:38:08 +0000 X-IronPort-AV: i="4.09,403,1157324400"; d="scan'208"; a="89010159:sNHT16941832" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: FileResourceLoader and resource loaders generally: getting the context of a request Date: Thu, 9 Nov 2006 09:38:08 -0000 Message-ID: <johnmartin@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FileResourceLoader and resource loaders generally: getting the context of a request Thread-Index: AccD4sPWCPJr/1i+Q5+gWKQKSskp+Q== From: "Townson, Chris" <johnmartin@example.com> To: "Velocity Users List" <johnmartin@example.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Virus-Checked: Checked by ClamAV on apache.org SGkgYWxsLA0KDQpJJ20ganVzdCB0cnlpbmcgdG8gd29yayBvdXQgaWYgdGhpcyBpcyBwb3NzaWJs ZSBhbmQgaG93IGl0IHdvdWxkIGJlIGRvbmU6DQoNClRoZSBwcm9ibGVtOg0KLS0tLS0tLS0tLS0t DQpDdXJyZW50bHksIHdlJ3JlIHVzaW5nIEZpbGVSZXNvdXJjZUxvYWRlciB0byByZXRyaWV2ZSB0 ZW1wbGF0ZXMgZnJvbSB0aGUgZmlsZXN5c3RlbSBpbiB0aGUgbm9ybWFsLiBJJ20gaW4gdGhlIHBy b2Nlc3Mgb2YgcHV0dGluZyB0b2dldGhlciBhIHNsaWdodGx5IGN1c3RvbWl6ZWQgdmVyc2lvbiBv ZiB0aGlzIHRvIHJlc29sdmUgYW1iaWd1b3VzIHJlcXVlc3RzIChlLmcuIGlmIHRlbXBsYXRlTmFt ZSA9PSBudWxsIG9yIGxlbmd0aCA9PSAwLCB1c2UgbG9vayBmb3IgYSB3ZWxjb21lIGZpbGUgYXMg Y29uZmlndXJlZCBpbiB3ZWIueG1sKSAuLi4gd2UgbmVlZCB0byBkbyB0aGlzIGJlY2F1c2UgdGhl IHdheSB3ZSdyZSBydW5uaW5nIHZlbG9jaXR5IGlzIHRocm91Z2ggYSBzZXJ2bGV0IHdoaWNoIHRh a2VzIHRoZSB0ZW1wbGF0ZSBwYXRoIGFzIGEgcmVxdWVzdCBhdHRyaWJ1dGUsIHBhcmFtZXRlciBv ciBwYXRoIGluZm8uDQoNCkhvd2V2ZXIsIHRoaXMgbWVhbnMgdGhhdCBpdCBiZWNvbWVzIGltcG9z c2libGUgdG8gI2luY2x1ZGUgb3IgI3BhcnNlIGEgZmlsZSB3aXRob3V0IHJlZmVyZW5jaW5nIGl0 IHVzaW5nIHRoZSBmdWxsIHBhdGggKGkuZS4gI3BhcnNlKCJhbm90aGVyRmlsZUluVGhpc0ZvbGRl ci52bSIpIGZhaWxzKQ0KDQpXaGF0IEkgd291bGQgbGlrZSB0byBkbyBpcywgaWYgd2UgZ2V0IGEg cmVxdWVzdCBsaWtlIHRoaXMsIHRvIGFkZCBhIHRlc3Qgd2hpY2ggZGlzY292ZXJzIHRoZSBwYXRo IGZyb20gX3doZXJlXyB0aGUgY2FsbCB3YXMgbWFkZSBhbmQgdGhlbiBub3JtYWxpemVzIGl0IGJh c2VkIG9uIHRoYXQgaW5mb3JtYXRpb24uDQoNClBvc3NpYmxlPw0KDQoNClRoYW5rcyBpbiBhZHZh bmNlLA0KDQpDaHJpcw0KDQpwLnMuIGNvbmdyYXR1bGF0aW9ucyBvbiBnb2luZyBUTFAhIDpEDQoN Ci0tLQ0KY2hyaXN0b3BoZXIgdG93bnNvbiAtIG5ldyB0ZWNobm9sb2d5IGRldmVsb3Blcg0KbmF0 dXJlIHB1Ymxpc2hpbmcgZ3JvdXAgLSA0IGNyaW5hbiBzdC4sIGxvbmRvbg0KdC4gKzQ0ICgyMCkg Nzg0My00NjQ0ICBlLiBjLnRvd25zb25AbmF0dXJlLmNvbQ0KCioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqICAgCkRJU0NMQUlNRVI6IFRoaXMgZS1tYWlsIGlzIGNvbmZpZGVudGlhbCBhbmQgc2hvdWxk IG5vdCBiZSB1c2VkIGJ5IGFueW9uZSB3aG8gaXMKbm90IHRoZSBvcmlnaW5hbCBpbnRlbmRlZCBy ZWNpcGllbnQuIElmIHlvdSBoYXZlIHJlY2VpdmVkIHRoaXMgZS1tYWlsIGluIGVycm9yCnBsZWFz ZSBpbmZvcm0gdGhlIHNlbmRlciBhbmQgZGVsZXRlIGl0IGZyb20geW91ciBtYWlsYm94IG9yIGFu eSBvdGhlciBzdG9yYWdlCm1lY2hhbmlzbS4gTmVpdGhlciBNYWNtaWxsYW4gUHVibGlzaGVycyBM aW1pdGVkIG5vciBhbnkgb2YgaXRzIGFnZW50cyBhY2NlcHQKbGlhYmlsaXR5IGZvciBhbnkgc3Rh dGVtZW50cyBtYWRlIHdoaWNoIGFyZSBjbGVhcmx5IHRoZSBzZW5kZXIncyBvd24gYW5kIG5vdApl eHByZXNzbHkgbWFkZSBvbiBiZWhhbGYgb2YgTWFjbWlsbGFuIFB1Ymxpc2hlcnMgTGltaXRlZCBv ciBvbmUgb2YgaXRzIGFnZW50cy4KUGxlYXNlIG5vdGUgdGhhdCBuZWl0aGVyIE1hY21pbGxhbiBQ dWJsaXNoZXJzIExpbWl0ZWQgbm9yIGFueSBvZiBpdHMgYWdlbnRzCmFjY2VwdCBhbnkgcmVzcG9u c2liaWxpdHkgZm9yIHZpcnVzZXMgdGhhdCBtYXkgYmUgY29udGFpbmVkIGluIHRoaXMgZS1tYWls IG9yCml0cyBhdHRhY2htZW50cyBhbmQgaXQgaXMgeW91ciByZXNwb25zaWJpbGl0eSB0byBzY2Fu IHRoZSBlLW1haWwgYW5kIAphdHRhY2htZW50cyAoaWYgYW55KS4gTm8gY29udHJhY3RzIG1heSBi ZSBjb25jbHVkZWQgb24gYmVoYWxmIG9mIE1hY21pbGxhbiAKUHVibGlzaGVycyBMaW1pdGVkIG9y IGl0cyBhZ2VudHMgYnkgbWVhbnMgb2YgZS1tYWlsIGNvbW11bmljYXRpb24uIE1hY21pbGxhbiAK UHVibGlzaGVycyBMaW1pdGVkIFJlZ2lzdGVyZWQgaW4gRW5nbGFuZCBhbmQgV2FsZXMgd2l0aCBy ZWdpc3RlcmVkIG51bWJlciA3ODU5OTggClJlZ2lzdGVyZWQgT2ZmaWNlIEJydW5lbCBSb2FkLCBI b3VuZG1pbGxzLCBCYXNpbmdzdG9rZSBSRzIxIDZYUyAgIAoqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq Kgo= From velocity-user-returnjohnmartin@example.com Thu Nov 09 10:01:57 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 91182 invoked from network); 9 Nov 2006 10:01:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Nov 2006 10:01:57 -0000 Received: (qmail 59288 invoked by uid 500); 9 Nov 2006 10:02:06 -0000 Delivered-To: johnmartin@example.com Received: (qmail 59104 invoked by uid 500); 9 Nov 2006 10:02:06 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 59093 invoked by uid 99); 9 Nov 2006 10:02:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 02:02:06 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO develog.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 02:01:51 -0800 Received: from localhost (localhost [83.161.120.155]) by develog.com (Postfix) with ESMTP id 4A8506FD1C for <johnmartin@example.com>; Thu, 9 Nov 2006 11:01:29 +0100 (CET) Received: from develog.com ([83.161.120.155]) by localhost (bricktop.develog.com [83.161.120.155]) (amavisd-new, port 10024) with ESMTP id 13598-01 for <johnmartin@example.com>; Thu, 9 Nov 2006 11:01:13 +0100 (CET) Received: from pegase.clod.info (m62.net81-65-118.noos.fr [83.161.120.155]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by develog.com (Postfix) with ESMTP id 632386FCFB for <johnmartin@example.com>; Thu, 9 Nov 2006 11:01:13 +0100 (CET) Subject: Re: FileResourceLoader and resource loaders generally: getting the context of a request From: Claude Brisson <johnmartin@example.com> To: Velocity Users List <johnmartin@example.com> In-Reply-To: <johnmartin@example.com> References: <johnmartin@example.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Thu, 09 Nov 2006 11:00:35 +0100 Message-Id: <johnmartin@example.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) X-Virus-Checked: Checked by ClamAV on apache.org Velocity 1.5 supports relative resource loading with #include and #parse. The 1.5 release is not ready yet but should be quite stable. You can grab it from subversion. To enable relative resource loading, put the following line in your velocity.properties file: eventhandler.include.class = org.apache.velocity.app.event.implement.IncludeRelativePath Claude Le jeudi 09 novembre 2006 à 09:38 +0000, Townson, Chris a écrit : > Hi all, > > I'm just trying to work out if this is possible and how it would be done: > > The problem: > ------------ > Currently, we're using FileResourceLoader to retrieve templates from the filesystem in the normal. I'm in the process of putting together a slightly customized version of this to resolve ambiguous requests (e.g. if templateName == null or length == 0, use look for a welcome file as configured in web.xml) ... we need to do this because the way we're running velocity is through a servlet which takes the template path as a request attribute, parameter or path info. > > However, this means that it becomes impossible to #include or #parse a file without referencing it using the full path (i.e. #parse("anotherFileInThisFolder.vm") fails) > > What I would like to do is, if we get a request like this, to add a test which discovers the path from _where_ the call was made and then normalizes it based on that information. > > Possible? > > > Thanks in advance, > > Chris > > p.s. congratulations on going TLP! :D > > --- > christopher townson - new technology developer > nature publishing group - 4 crinan st., london > t. 219.257.5997 e. johnmartin@example.com > > ******************************************************************************** > DISCLAIMER: This e-mail is confidential and should not be used by anyone who is > not the original intended recipient. If you have received this e-mail in error > please inform the sender and delete it from your mailbox or any other storage > mechanism. Neither Macmillan Publishers Limited nor any of its agents accept > liability for any statements made which are clearly the sender's own and not > expressly made on behalf of Macmillan Publishers Limited or one of its agents. > Please note that neither Macmillan Publishers Limited nor any of its agents > accept any responsibility for viruses that may be contained in this e-mail or > its attachments and it is your responsibility to scan the e-mail and > attachments (if any). No contracts may be concluded on behalf of Macmillan > Publishers Limited or its agents by means of e-mail communication. Macmillan > Publishers Limited Registered in England and Wales with registered number 785998 > Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS > ******************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Thu Nov 09 10:09:18 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 93461 invoked from network); 9 Nov 2006 10:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 9 Nov 2006 10:09:14 -0000 Received: (qmail 70647 invoked by uid 500); 9 Nov 2006 10:09:17 -0000 Delivered-To: johnmartin@example.com Received: (qmail 70635 invoked by uid 500); 9 Nov 2006 10:09:17 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 70624 invoked by uid 99); 9 Nov 2006 10:09:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 02:09:17 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO hermes-ldn.macmillan.co.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Nov 2006 02:09:04 -0800 Received: from mpl-ldn-exc2.mpl.root-domain.org ([83.161.120.155]) by hermes-ldn.macmillan.co.uk with ESMTP; 09 Nov 2006 10:08:43 +0000 X-IronPort-AV: i="4.09,403,1157324400"; d="scan'208"; a="89019443:sNHT21851024" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: FileResourceLoader and resource loaders generally: getting thecontext of a request Date: Thu, 9 Nov 2006 10:08:22 -0000 Message-ID: <johnmartin@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FileResourceLoader and resource loaders generally: getting thecontext of a request Thread-Index: AccD5iAeCRVAV0URRBaKU1vesbaNFwAADw4w From: "Townson, Chris" <johnmartin@example.com> To: "Velocity Users List" <johnmartin@example.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org excellent ... I've started moving a lot of our stuff over to 1.5 recently a= nd we're certainly planning on upgrading for production purposes asap. Can you think of a solution for 1.4 in the meantime? ... or perhaps best no= t to bother with this as it looks like I would only have to remove my own i= mplementation when we did upgrade. I'll take a look at how it's done in that event handler. cheers, Chris > -----Original Message----- > From: Claude Brisson [mailto:johnmartin@example.com]=20 > Sent: 09 November 2006 10:01 > To: Velocity Users List > Subject: Re: FileResourceLoader and resource loaders=20 > generally: getting thecontext of a request >=20 > Velocity 1.5 supports relative resource loading with #include and > #parse. >=20 > The 1.5 release is not ready yet but should be quite stable. You can > grab it from subversion. >=20 > To enable relative resource loading, put the following line in your > velocity.properties file: >=20 > eventhandler.include.class =3D > org.apache.velocity.app.event.implement.IncludeRelativePath >=20 >=20 > Claude >=20 > Le jeudi 09 novembre 2006 =E0 09:38 +0000, Townson, Chris a =E9crit : > > Hi all, > >=20 > > I'm just trying to work out if this is possible and how it=20 > would be done: > >=20 > > The problem: > > ------------ > > Currently, we're using FileResourceLoader to retrieve=20 > templates from the filesystem in the normal. I'm in the=20 > process of putting together a slightly customized version of=20 > this to resolve ambiguous requests (e.g. if templateName =3D=3D=20 > null or length =3D=3D 0, use look for a welcome file as=20 > configured in web.xml) ... we need to do this because the way=20 > we're running velocity is through a servlet which takes the=20 > template path as a request attribute, parameter or path info. > >=20 > > However, this means that it becomes impossible to #include=20 > or #parse a file without referencing it using the full path=20 > (i.e. #parse("anotherFileInThisFolder.vm") fails) > >=20 > > What I would like to do is, if we get a request like this,=20 > to add a test which discovers the path from _where_ the call=20 > was made and then normalizes it based on that information. > >=20 > > Possible? > >=20 > >=20 > > Thanks in advance, > >=20 > > Chris > >=20 > > p.s. congratulations on going TLP! :D > >=20 > > --- > > christopher townson - new technology developer > > nature publishing group - 4 crinan st., london > > t. 219.257.5997 e. johnmartin@example.com > >=20 > >=20 > ************************************************************** > ****************** =20 > > DISCLAIMER: This e-mail is confidential and should not be=20 > used by anyone who is > > not the original intended recipient. If you have received=20 > this e-mail in error > > please inform the sender and delete it from your mailbox or=20 > any other storage > > mechanism. Neither Macmillan Publishers Limited nor any of=20 > its agents accept > > liability for any statements made which are clearly the=20 > sender's own and not > > expressly made on behalf of Macmillan Publishers Limited or=20 > one of its agents. > > Please note that neither Macmillan Publishers Limited nor=20 > any of its agents > > accept any responsibility for viruses that may be contained=20 > in this e-mail or > > its attachments and it is your responsibility to scan the=20 > e-mail and=20 > > attachments (if any). No contracts may be concluded on=20 > behalf of Macmillan=20 > > Publishers Limited or its agents by means of e-mail=20 > communication. Macmillan=20 > > Publishers Limited Registered in England and Wales with=20 > registered number 785998=20 > > Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS =20 > >=20 > ************************************************************** > ****************** >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: johnmartin@example.com > For additional commands, e-mail: johnmartin@example.com >=20 ***************************************************************************= ***** =20 DISCLAIMER: This e-mail is confidential and should not be used by anyone wh= o is not the original intended recipient. If you have received this e-mail in er= ror please inform the sender and delete it from your mailbox or any other stora= ge mechanism. Neither Macmillan Publishers Limited nor any of its agents accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of Macmillan Publishers Limited or one of its agen= ts. Please note that neither Macmillan Publishers Limited nor any of its agents accept any responsibility for viruses that may be contained in this e-mail = or its attachments and it is your responsibility to scan the e-mail and=20 attachments (if any). No contracts may be concluded on behalf of Macmillan=20 Publishers Limited or its agents by means of e-mail communication. Macmilla= n=20 Publishers Limited Registered in England and Wales with registered number 7= 85998=20 Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS =20 ***************************************************************************= ***** --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 13:56:15 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 65939 invoked from network); 10 Nov 2006 13:56:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 13:56:15 -0000 Received: (qmail 86792 invoked by uid 500); 10 Nov 2006 13:56:24 -0000 Delivered-To: johnmartin@example.com Received: (qmail 86781 invoked by uid 500); 10 Nov 2006 13:56:23 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 86770 invoked by uid 99); 10 Nov 2006 13:56:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 05:56:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 05:56:08 -0800 Received: by nf-out-0910.google.com with SMTP id h2so1169823nfe for <johnmartin@example.com>; Fri, 10 Nov 2006 05:55:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=L9p+Uowrfm62eTas1fY45Fq6apV0hfMZJy4NsFynsbrTQvKZ2XVGsctM0ksk0EcNGy/p4zg18DkVB163t+y9QTdGJ/FC2r2LDnaAUqrNcvweOCw4DqmGV0HmI8LYRMl1AiwF+21Sc8uRBAqfhFdvH/rUu8iL8Ei+a0hFO0K/nvE= Received: by 83.161.120.155 with SMTP id x16mr5373700nfk.1163166944831; Fri, 10 Nov 2006 05:55:44 -0800 (PST) Received: from pegase.clod.info ( [83.161.120.155]) by mx.google.com with ESMTP id a24sm3859002nfc.283.161.120.155.55.43; Fri, 10 Nov 2006 05:55:44 -0800 (PST) Subject: Velosurf 2.0 From: Claude Brisson <johnmartin@example.com> To: Velocity Users List <johnmartin@example.com> Content-Type: text/plain Date: Fri, 10 Nov 2006 14:55:04 +0100 Message-Id: <johnmartin@example.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Velosurf 2.0 has just been released. Velosurf is a database mapping layer for the Apache Velocity template engine. It provides automatic database mapping of tables and relationships without any code generation. In the context of a Webapp, it also provides handy tools for authentication, localization, and forms validation. Homepage: http://velosurf.sourrceforge.net Claude --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:01:16 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 68961 invoked from network); 10 Nov 2006 14:01:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:01:15 -0000 Received: (qmail 98501 invoked by uid 500); 10 Nov 2006 14:01:24 -0000 Delivered-To: johnmartin@example.com Received: (qmail 98484 invoked by uid 500); 10 Nov 2006 14:01:24 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 98466 invoked by uid 99); 10 Nov 2006 14:01:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:01:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0102.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:01:08 -0800 Received: by nz-out-0102.google.com with SMTP id k1so298463nzf for <johnmartin@example.com>; Fri, 10 Nov 2006 06:00:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mqQgZvSXfKT9l6/uHOCuSNT1TKP30p71bKnRz35JaNgDWXo48Rjl4TDD3tRhu5iOwVrlHN8QJItgA9qq/R3dzx6aEwsjQah0504xMejMZIe5mPA9at5+friphqa15+aUO6eFV+uG86UhW/Vbg1iKBl91efIndDW1fqrcZKXfONU= Received: by 83.161.120.155 with SMTP id s1mr3313856pyl.1163167247048; Fri, 10 Nov 2006 06:00:47 -0800 (PST) Received: by 83.161.120.155 with HTTP; Fri, 10 Nov 2006 06:00:47 -0800 (PST) Message-ID: <johnmartin@example.com> Date: Fri, 10 Nov 2006 06:00:47 -0800 From: "Will Glass-Husain" <johnmartin@example.com> Sender: johnmartin@example.com To: "Velocity Users List" <johnmartin@example.com> Subject: Re: Velosurf 2.0 In-Reply-To: <johnmartin@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <johnmartin@example.com> X-Google-Sender-Auth: 1a0543c71eff2301 X-Virus-Checked: Checked by ClamAV on apache.org Congratulations, Claude-- looks really nice! (obviously you meant the link below: http://velosurf.sourceforge.net ) WILL On 11/10/06, Claude Brisson <johnmartin@example.com> wrote: > Velosurf 2.0 has just been released. > > Velosurf is a database mapping layer for the Apache Velocity template > engine. It provides automatic database mapping of tables and > relationships without any code generation. In the context of a Webapp, > it also provides handy tools for authentication, localization, and forms > validation. > > Homepage: http://velosurf.sourrceforge.net > > Claude > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: johnmartin@example.com > For additional commands, e-mail: johnmartin@example.com > > -- Forio Business Simulations Will Glass-Husain johnmartin@example.com www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:21:54 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 82464 invoked from network); 10 Nov 2006 14:21:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:21:54 -0000 Received: (qmail 41642 invoked by uid 500); 10 Nov 2006 14:22:02 -0000 Delivered-To: johnmartin@example.com Received: (qmail 41632 invoked by uid 500); 10 Nov 2006 14:22:02 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 41621 invoked by uid 99); 10 Nov 2006 14:22:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:22:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:21:47 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GiXEg-00083W-PL for johnmartin@example.com; Fri, 10 Nov 2006 15:20:02 +0100 Received: from m67.net81-67-81.noos.fr ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <johnmartin@example.com>; Fri, 10 Nov 2006 15:20:02 +0100 Received: from contact by m67.net81-67-81.noos.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <johnmartin@example.com>; Fri, 10 Nov 2006 15:20:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: johnmartin@example.com From: Jerome Louvel <johnmartin@example.com> Subject: [ANN] Restlet now supports Velocity Date: Fri, 10 Nov 2006 15:11:47 +0100 Lines: 36 Message-ID: <johnmartin@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: johnmartin@example.com X-Gmane-NNTP-Posting-Host: m67.net81-67-81.noos.fr User-Agent: Thunderbird 83.161.120.155 (Windows/20061025) Sender: news <johnmartin@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Restlet, a lightweight REST framework for Java, now natively supports Velocity templates. This feature was added in our latest 1.0 beta 20 release. Here is a summary of the main features: * REST concepts have equivalent Java classes (resource, representation, connector, etc.) * Suitable for both client and server Web applications * Automatic server-side content negotiation based on media type and language preferences * Static file serving and editing with metadata association based on file extensions * Support for representations like JSON, XML (DOM or SAX), FreeMarker templates (alternative to JSP) * Server connectors for HTTP, HTTPS and AJP (for Apache or IIS) protocols * Client connectors for HTTP, HTTPS, SMTP, JDBC and FILE protocols * Routers support the concept of URIs as UI with advanced pattern matching features * Filters support features such as authorization, browser tunnelling and extraction of call attributes * Support of HTTP Basic and Amazon Web Services authentication schemes * Deployment as native services using Java Service Wrapper * Supports blocking and non-blocking NIO modes * Clean Restlet API as a full alternative to the Servlet API * Noelios Restlet Engine (NRE) is the Reference Implementation (provided by Noelios Consulting) Project home page: http://www.restlet.org -- Jerome Louvel http://www.noelios.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:24:49 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 84213 invoked from network); 10 Nov 2006 14:24:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:24:49 -0000 Received: (qmail 47255 invoked by uid 500); 10 Nov 2006 14:24:57 -0000 Delivered-To: johnmartin@example.com Received: (qmail 47243 invoked by uid 500); 10 Nov 2006 14:24:57 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 47231 invoked by uid 99); 10 Nov 2006 14:24:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:24:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nz-out-0102.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:24:43 -0800 Received: by nz-out-0102.google.com with SMTP id o1so314430nzf for <johnmartin@example.com>; Fri, 10 Nov 2006 06:24:22 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=bbJFa0ZiRD/w0Jv9462k2R9zl1dRY2yO+J+WtyYrKJWjZAHCILyE+oextkG9lBCLGsJj2F3QxPi80VnVycLEzIn0vZK94zcmNpUE19UO3DtkO2MBdI9jo+hadEhCaK+vVHGs4d7XdtDzm8dOBjTsnG75ewNwE3NrReMO0ONFKeQ= Received: by 83.161.120.155 with SMTP id x14mr3367486pyi.1163168662016; Fri, 10 Nov 2006 06:24:22 -0800 (PST) Received: by 83.161.120.155 with HTTP; Fri, 10 Nov 2006 06:24:21 -0800 (PST) Message-ID: <johnmartin@example.com> Date: Fri, 10 Nov 2006 06:24:21 -0800 From: "Will Glass-Husain" <johnmartin@example.com> Sender: johnmartin@example.com To: "Velocity Users List" <johnmartin@example.com> Subject: Re: [ANN] Restlet now supports Velocity In-Reply-To: <johnmartin@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <johnmartin@example.com> X-Google-Sender-Auth: 10b7fa5c852d8957 X-Virus-Checked: Checked by ClamAV on apache.org Sounds very slick. Is Restlet in our Powered By Velocity wiki page? Feel free to add it. WILL On 11/10/06, Jerome Louvel <johnmartin@example.com> wrote: > Hi all, > > Restlet, a lightweight REST framework for Java, now natively supports > Velocity templates. This feature was added in our latest 1.0 beta 20 > release. > > Here is a summary of the main features: > * REST concepts have equivalent Java classes (resource, > representation, connector, etc.) > * Suitable for both client and server Web applications > * Automatic server-side content negotiation based on media type > and language preferences > * Static file serving and editing with metadata association based > on file extensions > * Support for representations like JSON, XML (DOM or SAX), > FreeMarker templates (alternative to JSP) > * Server connectors for HTTP, HTTPS and AJP (for Apache or IIS) > protocols > * Client connectors for HTTP, HTTPS, SMTP, JDBC and FILE protocols > * Routers support the concept of URIs as UI with advanced pattern > matching features > * Filters support features such as authorization, browser > tunnelling and extraction of call attributes > * Support of HTTP Basic and Amazon Web Services authentication schemes > * Deployment as native services using Java Service Wrapper > * Supports blocking and non-blocking NIO modes > * Clean Restlet API as a full alternative to the Servlet API > * Noelios Restlet Engine (NRE) is the Reference Implementation > (provided by Noelios Consulting) > > Project home page: > http://www.restlet.org > > -- > Jerome Louvel > http://www.noelios.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: johnmartin@example.com > For additional commands, e-mail: johnmartin@example.com > > -- Forio Business Simulations Will Glass-Husain johnmartin@example.com www.forio.com --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:44:16 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 94014 invoked from network); 10 Nov 2006 14:44:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:44:16 -0000 Received: (qmail 96939 invoked by uid 500); 10 Nov 2006 14:44:25 -0000 Delivered-To: johnmartin@example.com Received: (qmail 96926 invoked by uid 500); 10 Nov 2006 14:44:25 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 96909 invoked by uid 99); 10 Nov 2006 14:44:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:44:25 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO talk.nabble.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:44:10 -0800 Received: from [83.161.120.155] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GiXbi-0003pB-6u for johnmartin@example.com; Fri, 10 Nov 2006 06:43:50 -0800 Message-ID: <johnmartin@example.com> Date: Fri, 10 Nov 2006 06:43:50 -0800 (PST) From: rjain <johnmartin@example.com> To: johnmartin@example.com Subject: Define Arraylist MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: johnmartin@example.com X-Virus-Checked: Checked by ClamAV on apache.org How do I define a new arraylist and add items to the arraylist in Velocity I am looking at something #set( $myArray = [""] ) ## Empty ArrayList $myArray.put("Item 1") $myArray.put("Item 2") regards Rajesh -- View this message in context: http://www.nabble.com/Define-Arraylist-tf2608110.html#a7278200 Sent from the Velocity - User mailing list johnmartin@example.com. --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:45:48 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 94860 invoked from network); 10 Nov 2006 14:45:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:45:48 -0000 Received: (qmail 1108 invoked by uid 500); 10 Nov 2006 14:45:57 -0000 Delivered-To: johnmartin@example.com Received: (qmail 1092 invoked by uid 500); 10 Nov 2006 14:45:57 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 1078 invoked by uid 99); 10 Nov 2006 14:45:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:45:57 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:45:42 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GiXcr-0004lg-UT for johnmartin@example.com; Fri, 10 Nov 2006 15:45:01 +0100 Received: from m67.net81-67-81.noos.fr ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <johnmartin@example.com>; Fri, 10 Nov 2006 15:45:01 +0100 Received: from contact by m67.net81-67-81.noos.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <johnmartin@example.com>; Fri, 10 Nov 2006 15:45:01 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: johnmartin@example.com From: Jerome Louvel <johnmartin@example.com> Subject: Re: [ANN] Restlet now supports Velocity Date: Fri, 10 Nov 2006 15:44:43 +0100 Lines: 14 Message-ID: <johnmartin@example.com> References: <johnmartin@example.com> <johnmartin@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: johnmartin@example.com X-Gmane-NNTP-Posting-Host: m67.net81-67-81.noos.fr User-Agent: Thunderbird 83.161.120.155 (Windows/20061025) In-Reply-To: <johnmartin@example.com> Sender: news <johnmartin@example.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Will, Thanks for taking a look. I've just added an entry for Restlet in the wiki! Thanks, Jerome Will Glass-Husain a écrit : > Sounds very slick. Is Restlet in our Powered By Velocity wiki page? > Feel free to add it. > > WILL --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:49:59 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 96298 invoked from network); 10 Nov 2006 14:49:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:49:59 -0000 Received: (qmail 14160 invoked by uid 500); 10 Nov 2006 14:50:07 -0000 Delivered-To: johnmartin@example.com Received: (qmail 14148 invoked by uid 500); 10 Nov 2006 14:50:07 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 14137 invoked by uid 99); 10 Nov 2006 14:50:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:50:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO hermes-ldn.macmillan.co.uk) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:49:54 -0800 Received: from mpl-ldn-exc2.mpl.root-domain.org ([83.161.120.155]) by hermes-ldn.macmillan.co.uk with ESMTP; 10 Nov 2006 14:49:32 +0000 X-IronPort-AV: i="4.09,410,1157324400"; d="scan'208"; a="89294504:sNHT43207296" X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Define Arraylist Date: Fri, 10 Nov 2006 14:49:31 -0000 Message-ID: <johnmartin@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Define Arraylist Thread-Index: AccE1rLLwKfFtabRTpqtd40jZuDTUQAAHjgA From: "Townson, Chris" <johnmartin@example.com> To: "Velocity Users List" <johnmartin@example.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org > How do I define a new arraylist and add items to the=20 > arraylist in Velocity >=20 > I am looking at something=20 >=20 > #set( $myArray =3D [""] ) ## Empty ArrayList > $myArray.put("Item 1") > $myArray.put("Item 2") >=20 #set($myArray =3D []) #set($temp =3D $myArray.add("Item 1") ## using set here will prevent the wo= rd "true" being output on success #set($temp =3D $myArray.add("Item 2") Cheers, Chris ***************************************************************************= ***** =20 DISCLAIMER: This e-mail is confidential and should not be used by anyone wh= o is not the original intended recipient. If you have received this e-mail in er= ror please inform the sender and delete it from your mailbox or any other stora= ge mechanism. Neither Macmillan Publishers Limited nor any of its agents accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of Macmillan Publishers Limited or one of its agen= ts. Please note that neither Macmillan Publishers Limited nor any of its agents accept any responsibility for viruses that may be contained in this e-mail = or its attachments and it is your responsibility to scan the e-mail and=20 attachments (if any). No contracts may be concluded on behalf of Macmillan=20 Publishers Limited or its agents by means of e-mail communication. Macmilla= n=20 Publishers Limited Registered in England and Wales with registered number 7= 85998=20 Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS =20 ***************************************************************************= ***** --------------------------------------------------------------------- To unsubscribe, e-mail: johnmartin@example.com For additional commands, e-mail: johnmartin@example.com From velocity-user-returnjohnmartin@example.com Fri Nov 10 14:52:25 2006 Return-Path: <velocity-user-returnjohnmartin@example.com> Delivered-To: johnmartin@example.com Received: (qmail 97313 invoked from network); 10 Nov 2006 14:52:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 10 Nov 2006 14:52:24 -0000 Received: (qmail 17533 invoked by uid 500); 10 Nov 2006 14:52:33 -0000 Delivered-To: johnmartin@example.com Received: (qmail 17517 invoked by uid 500); 10 Nov 2006 14:52:33 -0000 Mailing-List: contact johnmartin@example.com; run by ezmlm Precedence: bulk List-Unsubscribe: <mailto:johnmartin@example.com> List-Help: <mailto:johnmartin@example.com> List-Post: <mailto:johnmartin@example.com> List-Id: "Velocity Users List" <velocity-user.jakarta.apache.org> Reply-To: "Velocity Users List" <johnmartin@example.com> Delivered-To: mailing list johnmartin@example.com Received: (qmail 17506 invoked by uid 99); 10 Nov 2006 14:52:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:52:33 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of johnmartin@example.com designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO nf-out-0910.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2006 06:52:19 -0800 Received: by nf-out-0910.google.com with SMTP id h2so1184144nfe for <johnmartin@example.com>; Fri, 10 Nov 2006 06:51:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=qSbpQz/QPas8oazxvCveQdsX5phrMm/nmRrfxdPPWn31jjYLduRjO8Qv+Im+K8EZNCSQ+TA+ACx6UPZ1KKeUeHGpFG5q5x98vMTc3ERPREmj78zJbwcJyEBlzuL4wksSuFiOh9knCUoypcV/fK6qYbeOIfLU9Q5VSkHIiS6ir2Q= Received: by 83.161.120.155 with SMTP id j18mr3833791nfg.1163170317327; Fri, 10 Nov 2006 06:51:57 -0800 (PST) Received: from pegase.clod.info ( [83.161.120.155]) by mx.google.com with ESMTP id g1sm4536545nfe.283.161.120.155.51.56; Fri, 10 Nov 2006 06:51:56 -0800 (PST) Subject: Re: Velosurf 2.0 From: Claude Brisson <johnmartin@example.com> To: Velocity Users List <johnmartin@example.com> In-Reply-To: <johnmartin@example.com> References: <johnmartin@example.com> <johnmartin@example.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Fri, 10 Nov 2006 15:51:17 +0100 Message-Id: <johnmartin@example.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le vendredi 10 novembre 2006 à 06:00 -0800, Will Glass-Husain a écrit : > Congratulations, Claude-- > > looks really nice! You're talking about the new logo? Yes, I'm very proud of it! ;-) > (obviously you meant the link below: > http://velosurf.sourceforge.net Thanks for the correction! Claude > ) > > WILL > > On 11/10/06, Claude Brisson <johnmartin@example.com> wrote: > > Velosurf 2.0 has just been released. > > > > Velosurf is a database mapping layer for the Apache Velocity template > > engine. It provides automatic database mapping of tables and > > relationships without any code generation. In the context of a Webapp, > > it also provides handy tools for authentication, localization, and forms > > validation.
{'source': 'Apache Software Foundation Public Mail Archives'}