Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@apache.org Received: (qmail 924 invoked from network); 3 Jan 2002 20:24:51 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Jan 2002 20:24:51 -0000 Received: (qmail 28639 invoked by uid 97); 3 Jan 2002 20:24:18 -0000 Delivered-To: qmlist-jakarta-archive-velocity-user@jakarta.apache.org Received: (qmail 28574 invoked by uid 97); 3 Jan 2002 20:24:17 -0000 Mailing-List: contact velocity-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Velocity Users List" Reply-To: "Velocity Users List" Delivered-To: mailing list velocity-user@jakarta.apache.org Received: (qmail 28479 invoked from network); 3 Jan 2002 20:24:16 -0000 Date: Thu, 03 Jan 2002 15:24:14 -0500 From: "Geir Magnusson Jr." Subject: Re: A call to correct the Velocity servlet_example1...pretty pretty please? In-reply-to: <002a01c19493$aeb93040$0200a8c0@unilinkgroup.com> To: velocity-user@jakarta.apache.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT User-Agent: Microsoft-Entourage/10.0.0.1309 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On 1/3/02 3:17 PM, "Steven Caswell" wrote: > Geir, I don't think servlet_example1 should be removed. Yes, fix it if > getRealPath() is a problem. Or explain that the servlet engine needs to > support getRealPath(). Documentation can always be improved. But don't > remove the example. It is the simplest thing to set up and is a great > starting place for understanding Velocity without the complexity of loaders > and property files and such. Ok. Good feedback. I thought servlet example 2 was simple too, but we'll keep #1. It would be good for David to verify that getRealPath() was the problem as it was a SWAG... > > -----Original Message----- > From: Geir Magnusson Jr. [mailto:geirm@optonline.net] > Sent: Thursday, January 03, 2002 3:02 PM > To: velocity-user@jakarta.apache.org > Subject: Re: A call to correct the Velocity servlet_example1...pretty > pretty please? > > > On 1/3/02 2:52 PM, "David Tonhofer, m-plify S.A." > wrote: > >> Right! >> >> Pox on whosoever set up the Velocity distribution's "servlet example 1" ! > > That was me. > >> >> In retrospect I should have known better but I'm just back from >> nearly punching holes into walls because I couldn't get the Velocity >> servlet example 1 to work (yes, the most stupid & simple one). > > Oh, I just punch the walls. Make it a hard one, because repairing plaster > tends to make one feel dumb. > >> >> Well, it turns out that one needs something called a >> "velocity.properties" file which should be adequately filled in, >> like so: >> >> ---- >> file.resource.loader.path = >> runtime.log = velocity.log >> ---- >> >> And it should reside in the webapp directory, otherwise there is *no >> way* the fileloader is ever going to stumble upon the humble file >> called "sample.vm" which supposedly has only to be copied to the >> webapp directory. Yeah, right. >> >> So, I suggest to at least put a sample "velocity.properties" file >> into the distribution AND make add a note regarding this to the >> f***ing README. >> >> Still fuming, > > Actually, for servlet example 1, I am not sure that it is needed. I will > admit its a lousy example, but that's why there is #2. We should remove #1. > > #1 was meant to be self configuring, but I suspect you are using a servlet > engine that doesn't support getRealPath() ? > > I have a fix for that, as I am worried that we will be touched by it more > and more. > > Thanks for the heads up - it will be fixed... > >> -- David >> >> >> -- >> To unsubscribe, e-mail: >> >> For additional commands, e-mail: >> >> > > -- > Geir Magnusson Jr. geirm@optonline.net > System and Software Consulting > "He who throws mud only loses ground." - Fat Albert > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > > > > _________________________________________________________ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > -- Geir Magnusson Jr. geirm@optonline.net System and Software Consulting "Whoever would overthrow the liberty of a nation must begin by subduing the freeness of speech." - Benjamin Franklin -- To unsubscribe, e-mail: For additional commands, e-mail: