Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 23663 invoked from network); 2 Jun 2004 19:24:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Jun 2004 19:24:16 -0000 Received: (qmail 17023 invoked by uid 500); 2 Jun 2004 19:24:26 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 16974 invoked by uid 500); 2 Jun 2004 19:24:25 -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 16961 invoked by uid 99); 2 Jun 2004 19:24:25 -0000 Received: from [209.210.229.6] (HELO folacin.esha.com) (209.210.229.6) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 02 Jun 2004 12:24:25 -0700 Received: from iron.esha.com (iron.esha.com [209.210.229.8]) by folacin.esha.com (8.12.9p2/8.12.9) with ESMTP id i52JO0JB097210 for ; Wed, 2 Jun 2004 12:24:01 -0700 (PDT) (envelope-from nathan@esha.com) Received: from RATBERT (host104.vpn.esha.com [192.168.5.104]) by iron.esha.com (iPlanet Messaging Server 5.2 (built Feb 21 2002)) with ESMTPA id <0HYP0060X4JZD4@iron.esha.com> for velocity-user@jakarta.apache.org; Wed, 02 Jun 2004 12:24:00 -0700 (PDT) Date: Wed, 02 Jun 2004 12:23:58 -0700 From: Nathan Bubna Subject: Re: rendering velocity in websphere To: Velocity Users List Message-id: <051401c448d7$281c5350$6e05a8c0@zeus.esha.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailer: Microsoft Outlook Express 6.00.2800.1409 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal References: <05fe01c448cd$aa127b50$840a0a0a@NEO> X-Spam-Status: No, hits=-99.84 required=7 X-Scanned-By: MIMEDefang 2.39 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N brian said: > I am having trouble showing my velocity templates in websphere. The > first issue is in my web.xml file, I have tried to enter the first page > of the application which is Login.vm. When I enter it as : > /templates/app/screens/Login.vm , it does not include the layout which > has the same name in the layouts directory. When I enter it as > /templates/app/layouts/Login.vm, it cannot find my images which are > entered as and it > does not show the content for $screen_placeholder or $screen_content. > Any help would be greatly appreciated. Thanks, Please listen carefully. if you are using the VelocityLayoutServlet (as i presume you still are from previous emails), then (for the third time) you should read http://jakarta.apache.org/velocity/tools/view/layoutservlet.html and do what it says. If you have a problem, check the directions again before asking about it. The document above describes how to set and use layouts at some length. If you had read it and paid attention, you would know that merely having a layout template of the same name as the screen template is *not* one of the ways to do layouts with the VelocityLayoutServlet. that's how Turbine works, Turbine does not use the VelocityLayoutServlet, nor vice versa. They are two entirely separate things. The same goes for the $content tool. That is a *Turbine* tool, it is not part of VelocityTools and the VelocityLayoutServlet will *not* make it available for you in the context. Oh, and once you have read http://jakarta.apache.org/velocity/tools/view/layoutservlet.html you should read http://www.catb.org/~esr/faqs/smart-questions.html Please do this as a favor to those of us patiently (well, not really anymore) answering your questions on this list. It is fairly ridiculous that you have been pointed to http://jakarta.apache.org/velocity/tools/view/layoutservlet.html in two previous emails and are still asking questions that are clearly and exp licitly answered therein. We write documentation so that we don't have to explain the same things over and over again to every newbie. Thanks. Nathan Bubna nathan@esha.com --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org