Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@jakarta.apache.org Received: (qmail 9119 invoked by uid 500); 18 May 2001 11:52:03 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: struts-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 8887 invoked from network); 18 May 2001 11:51:59 -0000 Received: from unknown (HELO pop.allomail.com) (203.117.109.157) by h31.sny.collab.net with SMTP; 18 May 2001 11:51:59 -0000 Received: from dino (as001158.singnet.com.sg [165.21.174.188]) by pop.allomail.com (Postfix) with SMTP id A80221405E4 for ; Fri, 18 May 2001 20:14:19 +0800 (SGT) From: "Sidney Chong" To: Subject: RE: how to set the default selected value using html:select and html:options Date: Fri, 18 May 2001 19:58:13 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <15108.57175.23655.612024@lbox.jline.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Doh, found my problem... my form bean name was capitalised in my struts-config file whereas in my action and jsp files, I wasn't using the capitalised name! grr... its errors like that which is hard to find. -----Original Message----- From: Jae W. Chang [mailto:jchang@jline.com]On Behalf Of struts@jline.com Sent: Friday, 18 May, 2001 4:38 PM To: struts-user@jakarta.apache.org Subject: how to set the default selected value using html:select and html:options yes, it does what you'd expect it to. selects the label that corresponds to the value of the property in the form bean. i'd recommend checking out the exercise-taglib examples. there are samples of how to drive most of the html tags. jae