Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 9590 invoked from network); 1 Sep 2002 19:34:45 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Sep 2002 19:34:45 -0000 Received: (qmail 28877 invoked by uid 97); 1 Sep 2002 19:35:07 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 28861 invoked by uid 97); 1 Sep 2002 19:35:07 -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 28847 invoked by uid 98); 1 Sep 2002 19:35:06 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "William Wan" To: Subject: How can use use nested tag to populate form data with variable element size? Date: Mon, 2 Sep 2002 03:34:30 +0800 Message-ID: <000a01c251ee$9a3a6620$0200a8c0@wwxp> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C25231.A85DA620" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_000B_01C25231.A85DA620 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have been using the nested tag for a moment and it is great for displaying nested information but I got a problem when submitting information using the tag. When I submitting the form with nested tag, it always comes out with null pointer exception during populating values to the bean if I do not instantiate all the child object and array size in the bean's constructor. Since I do not know the actual size of the object before those properties can be populated, this make me need to set the MAX of the array size and always instantiate them in the bean's constructor, is there better method for doing that? ------=_NextPart_000_000B_01C25231.A85DA620--