Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 58023 invoked from network); 1 Jun 2002 22:42:14 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Jun 2002 22:42:14 -0000 Received: (qmail 11717 invoked by uid 97); 1 Jun 2002 22:41:52 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 11649 invoked by uid 97); 1 Jun 2002 22:41:51 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 11635 invoked by uid 98); 1 Jun 2002 22:41:50 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Thu, 30 May 2002 11:04:57 +0800 From: Vernon Wu Subject: Unable to find setter: a problem with custom tag in TC 4.0.4b2 To: tomcat-user@jakarta.apache.org Reply-to: vernonw@gatewaytech.com Message-id: <212XD9FAOLMK4A0K07E07143XITS.3cf596d9@kimiko> MIME-version: 1.0 X-Mailer: Opera 6.01 build 1041 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 (Normal) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, all, I run into an error message on Tomcat 4.0.4b2 when I use a custom tag in a JSP file. The error message is: /jsp/fullsearchlist/content.jsp(4,0) Unable to find setter method for attribute: numItems The code fragment is the followings: public abstract class ListTag extends TagSupport { // ... protected int numItems = -1; //... // setters public void setNumItems(String numItemsStr) { numItems = Integer.parseInt(numItemsStr); } } public abstract class SearchListTag extends ListTag { //... // setters (overloaded to fix bug in tomcat) public void setNumItems(String numItemsStr) { super.setNumItems(numItemsStr); } } public class FullSearchListTag extends SearchListTag { //... public void setNumItems(String numItemsStr) { super.setNumItems(numItemsStr); } } I have tried to remove the setNumItems method from SearchList and/or FullSearchList, but can't resolute the problem. I learn that there was a bug led to this problem in the early version of Tomcat. Is the bug unresolved yet? How I can overcome this problem? Thanks very much in advance. Vernon -- To unsubscribe, e-mail: For additional commands, e-mail: