Please remove any user you have on your mailing list with the domain Avolo.com. Many thanks, Bill Rogan Corporate Systems Administrator Avolo (206) 219-9201 AVOLO - Aviation's clear approach to intelligent business. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 8:46 AM To: [EMAIL PROTECTED] Subject: REPOST: Re: Setting Select value= dynamically? Hi everyone. Didn't get any response on this one. Does anyone have any ideas how to avoid the hack? Seems to me it would be quite a regular requirement to set the selected option dynamically, especially dependant on previous server-side processing. Basically I need to set the value= field according to a formbean property set in the action that fowards to this page. Many thanks, Dave ---------------------- Forwarded by David Hay/Lex/Lexmark on 04/20/2001 11:47 AM --------------------------- David Hay 04/18/2001 02:03 PM To: [EMAIL PROTECTED] cc: Subject: Re: Setting Select value= dynamically? Have created a hack to do this, using <bean:define id="thisDay" name="LogFilterForm" property="day"/> <html:select property="day" value="<%=(String)thisDay%>"> <html:options collection="dayList" property="value" labelProperty="label"/> </html:select> Surely there is a cleaner way to do it than this?! Not least as I have to do it for month, year, hour and minute as well! Seems like I already have "day" right there, but can't figure out how to access it w/o another bean define. What am I missing? Thanks, Dave ---------------------- Forwarded by David Hay/Lex/Lexmark on 04/18/2001 02:04 PM --------------------------- David Hay 04/18/2001 12:54 PM To: [EMAIL PROTECTED] cc: Subject: Setting Select value= dynamically? (Document link: David Hay) Hi. Am aware that you can set value= on html:select tag, as "the value to compare with for marking an option selected". For example, in the code below, to display "08" when jsp loads <bean:define id="dayList" name="LogFilterForm" property="days"/> <html:select property="day" value="08"> <html:options collection="dayList" property="value" labelProperty="label"/> </html:select> Before this jsp, I am filtering some records and want to set the day to the earliest one found. How do I do this? I set the value of "day" in my FormBean to the one found, but how do I get this one selected when jsp displayed? Do I need to use some kind of scriplet? Many thanks, Dave