Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 58657 invoked from network); 15 Oct 2004 17:56:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Oct 2004 17:56:56 -0000 Received: (qmail 56799 invoked by uid 500); 15 Oct 2004 17:56:46 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 56705 invoked by uid 500); 15 Oct 2004 17:56:44 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 56690 invoked by uid 99); 15 Oct 2004 17:56:44 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_90_100,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [68.142.225.163] (HELO web54407.mail.yahoo.com) (68.142.225.163) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 15 Oct 2004 10:56:44 -0700 Message-ID: <20041015175642.73652.qmail@web54407.mail.yahoo.com> Received: from [144.160.130.16] by web54407.mail.yahoo.com via HTTP; Fri, 15 Oct 2004 10:56:42 PDT Date: Fri, 15 Oct 2004 10:56:42 -0700 (PDT) From: Joe Smith Subject: process regular fields in html form To: Jakarta Commons Users List In-Reply-To: <20041015175524.12940.qmail@web54403.mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-146823003-1097863002=:72382" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-146823003-1097863002=:72382 Content-Type: text/plain; charset=us-ascii When we process the form data without file upload control in JSP. We can use JavaBeans in JSP, then the following will store all the request form data to MyObjectModel object: However, when we process the form data that contains file upload, and uses commons-fileupload, then we should approach the following, is that correct? if (item.isFormField()) { String name = item.getFieldName(); String value = item.getString(); MyObjectModel om = new MyObjectModel(); if (name.equals("fieldName1")) ad.setFieldName1(value); else if (name.equals("fieldName2")) ad. setFieldName2(value); else if (name.equals("fieldName3")) ad.setFieldName3(value); //etc... } Please advise. Thanks!! --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. --0-146823003-1097863002=:72382--