Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 95404 invoked from network); 13 Aug 2004 09:06:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Aug 2004 09:06:13 -0000 Received: (qmail 22844 invoked by uid 500); 13 Aug 2004 09:05:28 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 22727 invoked by uid 500); 13 Aug 2004 09:05:27 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 22684 invoked by uid 99); 13 Aug 2004 09:05:27 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=NO_REAL_NAME,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.27.1) with SMTP; Fri, 13 Aug 2004 02:05:23 -0700 Received: (qmail 12922 invoked by uid 50); 13 Aug 2004 09:06:56 -0000 Date: 13 Aug 2004 09:06:56 -0000 Message-ID: <20040813090656.12921.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 30644] New: - Invalid Java code generation from JSP X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30644 Invalid Java code generation from JSP Summary: Invalid Java code generation from JSP Product: Tomcat 5 Version: 5.0.19 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: Jasper AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: d_bajracharya@yahoo.com An object named clientList of type ArrayList is passed to JSP page from servlet. In JSP page, as part of jsp:useBean, java.util.List is specifed and scope specified is request. () The generated JAVA page fails to compile due to an attempt to create java.util.List if the passed object is null. I think the generated code should not try to create. The support for interface is very important. Code snippet: java.util.List clientList = _jspx_page_context.getAttribute("clientList"); if (clientList == null){ clientList = new java.util.List(); _jspx_page_context.setAttribute("clientList", clientList, PageContext.REQUEST_SCOPE); } --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org