Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 49704 invoked from network); 2 Nov 2006 16:20:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 16:20:03 -0000 Received: (qmail 65935 invoked by uid 500); 2 Nov 2006 16:20:02 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 65907 invoked by uid 500); 2 Nov 2006 16:20:02 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 65896 invoked by uid 99); 2 Nov 2006 16:20:02 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 08:20:02 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Michael.Dean@courts.wa.gov designates 206.194.128.72 as permitted sender) Received: from [206.194.128.72] (HELO aocmail1.courts.wa.gov) (206.194.128.72) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 08:19:46 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: How to make a SELECT list readonly? If set disabled, loses the value when submit. Date: Thu, 2 Nov 2006 08:19:25 -0800 Message-ID: <4B7F0AC486C85344A6FB632A7FAE45A80158900E@EXCHMAIL.courts.wa.gov> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to make a SELECT list readonly? If set disabled, loses the value when submit. Thread-Index: Acb+mqn2AVojoaZ8QhOJd1RZMh6oRA== From: "Dean, Michael" To: "Mississippi John Hurt" , "Struts Users Mailing List" Cc: "Basi, Paramjeet" , "Zimmerman, Steven" , "VanEyk, Ken" X-Virus-Checked: Checked by ClamAV on apache.org MJ, This is slightly tangential...but I faced a similar problem in trying to prevent "double-submit"... Below is the solution jsp code...refer embedded comments... . . . The narrative: when the user selects the submit button, the onsubmit() method (defined in some external javascript) disables the button and enables a proxy hidden field which also ha a VALUE argument which matches the method name required by the DispatchAction sub-class... HTH, M -----Original Message----- From: Mississippi John Hurt [mailto:johnhurt@gmail.com]=20 Sent: Wednesday, November 01, 2006 12:18 PM To: Struts Users Mailing List Subject: How to make a SELECT list readonly? If set disabled, loses the value when submit. Help, I can make readonly by setting readonly=3D"true" which works. has no readonly attribute, only a disabled. If I use disabled attribute, then the value of the select is no longer recognized and my form validation says its required. How can I make the disabled or readonly while keeping the values it has passing back to the action when form is submitted. Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org