struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lcl" <>
Subject <html:select> 's disabled property is according to other property
Date Wed, 18 Jun 2003 09:17:57 GMT

I have a elementary question want to ask the experts like you guys, in my
form bean ,there are 3 field :
depid, empid, choosetype

in jsp, depid and empid will list as
dropdown menu, and choosetype will list as radio button, clip like this :
<html:select property="depid">
<html:select property="empid" >
<html:radio property="choosetype" value="D">dep</html:radio>
<html:radio property="choosetype" value="E">emp</html:radio>

my question is, How can I set the select tag property according to the value
of choosetype, for example, if the choosetype equal to "E", the disabled of
depid is set to true :

<html:select property="depid"

thank you very much...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message