Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@www.apache.org Received: (qmail 81172 invoked from network); 7 Nov 2003 03:49:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Nov 2003 03:49:25 -0000 Received: (qmail 67334 invoked by uid 500); 7 Nov 2003 03:48:50 -0000 Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 67310 invoked by uid 500); 7 Nov 2003 03:48:49 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 67297 invoked from network); 7 Nov 2003 03:48:49 -0000 Received: from unknown (HELO rwcrmhc13.comcast.net) (204.127.198.39) by daedalus.apache.org with SMTP; 7 Nov 2003 03:48:49 -0000 Received: from home (c-24-126-171-213.we.client2.attbi.com[24.126.171.213]) by comcast.net (rwcrmhc13) with SMTP id <20031107034858015000dngte>; Fri, 7 Nov 2003 03:48:59 +0000 From: "Khalid K." To: "'Struts Users Mailing List'" Cc: "'Srinivas Gunturu'" Subject: RE: Struts Dilemma Date: Thu, 6 Nov 2003 19:48:53 -0800 Message-ID: <004a01c3a4e2$108c7330$d5ab7e18@home> MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I do the following: // in the bean Public boolean isActive() { if (blah) return true; return false; } // if I know that this method will be used in jsp, I also write the following: Public boolean getIsActive() { if (isActive()) return true; return false; } // in jsp printout whatever... It works... Khalid -----Original Message----- From: Srinivas Gunturu [mailto:sxg1127@bjc.org] Sent: Thursday, November 06, 2003 9:30 AM Subject: Struts Dilemma Often when writing a bean for use by a tag, I seem to be writing a equivalent method that returns a string value for a boolean property. For example: If I mean to pass a boolean property isInactive, I am also writing a getInactiveFlag which returns "N" or "Y" based on isInactive. I use inactiveFlag in my tag definition and inside my tag I check for "Y" or "N". Am I totally missing something or is there a better way to do this? TIA --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.536 / Virus Database: 331 - Release Date: 11/3/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.536 / Virus Database: 331 - Release Date: 11/3/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-user-help@jakarta.apache.org