Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 65150 invoked from network); 11 Apr 2005 14:58:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Apr 2005 14:58:28 -0000 Received: (qmail 46082 invoked by uid 500); 11 Apr 2005 14:58:25 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 45777 invoked by uid 500); 11 Apr 2005 14:58:23 -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 45764 invoked by uid 99); 11 Apr 2005 14:58:23 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ptb-relay03.plus.net (HELO ptb-relay03.plus.net) (212.159.14.214) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 11 Apr 2005 07:58:22 -0700 Received: from [84.92.85.107] (helo=10.0.0.10) by ptb-relay03.plus.net with esmtp (Exim) id 1DL0Mk-000FbU-CC for velocity-user@jakarta.apache.org; Mon, 11 Apr 2005 14:58:18 +0000 Subject: instanceof From: Ross Bamford To: velocity-user@jakarta.apache.org Content-Type: text/plain Organization: Roscopeco Open Technologies Date: Mon, 11 Apr 2005 15:58:17 +0100 Message-Id: <1113231497.25110.46.camel@jukebox.roscopeco> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi all, Does anyone know of a way to do instanceof checks from VTL? At the moment I'm providing a simple isA method on objects, but I am thinking there must be another way... The isA method works, but (at the moment) only checks the actual classname (not superclasses). Before I go about working this out, I just wondered if I had missed something crucial ... ? Cheers, Ross -- [Ross A. Bamford] [ross@roscopec0.f9.co.uk] Roscopeco Open Tech ++ Open Source + Java + Apache + CMF http://www.roscopec0.f9.co.uk/ + info@roscopec0.f9.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org