Return-Path: Delivered-To: apmail-jakarta-velocity-user-archive@www.apache.org Received: (qmail 68947 invoked from network); 3 Jun 2004 20:27:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Jun 2004 20:27:47 -0000 Received: (qmail 22898 invoked by uid 500); 3 Jun 2004 20:26:17 -0000 Delivered-To: apmail-jakarta-velocity-user-archive@jakarta.apache.org Received: (qmail 22745 invoked by uid 500); 3 Jun 2004 20:26:16 -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 13778 invoked by uid 99); 3 Jun 2004 19:35:57 -0000 Message-ID: <20040603193529.58768.qmail@web50005.mail.yahoo.com> Date: Thu, 3 Jun 2004 12:35:29 -0700 (PDT) From: Vijay Bala Subject: Just a small issue... To: velocity-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi there! When I work with velocity I find it so incredible and I do really enjoy working with it. I just find the following issue while working with it. Please clarify me what to do. First, I declare #set ($attributeList = ["firstName", "dob"]) #set ($typeList = ["String","TimeStamp"] ) and then I try to create getters and setters for these attributes like... foreach($attribute in $attributeList) set ($i = 0) public $typeList.get(i) get$attribute{ return $(attribute); } } set ($i = $i +1) #end When I get the output, I get like this.... public String getfirstName(){ return firstName; } Well my issue is I do need to have the "getter" to be named as "getFirstName()" instead of getfirstName. Please explain me how to achive getting the first letter Capital on the method name.(like get(F)irstName) Thanks in advance. -Vijay __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: velocity-user-help@jakarta.apache.org