Are those typos in your jsp? ===>>><htrml<<<==== If so, that may be part of the problem...
Also, I'd check to verify that the values are not padded (i.e. CHAR(2) datatype may yield "m " instead of "m" which is not the same value. -----Original Message----- From: Goldy J [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 5:38 AM To: [EMAIL PROTECTED] Subject: populating Drop down -pls help Hello, I have a JSP in which there are number of dropdown along with text boxes. I am using struts tag lib for getting the value when I submit the form. The problem is when I try to populate the dropdown in th JSP with the data that i get from the databse . For example I have dropdown for gender with option M,F.Now when I select and submit it I am OK but when I query and get the value from DB It doesnt set to appropiate value but always with the deafult M. same for others dropdowns. Iam using the following in my JSP <html:select property ="gender"><htrml:option value="m"></html:option><htrml:option value="f"></html:option></html:select> In formbean String gender; setGender{}; getGender{}; Any help will be highly appreciated Thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]