Aug 16, 2005 #1 warelock IS-IT--Management Aug 16, 2005 12 US Hi all ! I want to disable an html:select at run time based on user actions. How can I do that - or CAN I do that ? ;-0) Thanks in advance -
Hi all ! I want to disable an html:select at run time based on user actions. How can I do that - or CAN I do that ? ;-0) Thanks in advance -
Aug 16, 2005 #2 venur MIS Aug 26, 2003 418 US Hi, The property to disable select is disabled="true" <html:select disabled="true" Cheers Venu Upvote 0 Downvote
Aug 16, 2005 Thread starter #3 warelock IS-IT--Management Aug 16, 2005 12 US Thank Venu. I guess I should explian a little more ;-) I am using a collection, and want to set disabled = true if the user is of a certain type and not otherwise. Right now the code looks like : <html:select property="agencyNo"> <htmlptionsCollection name="sessionData" property="agencyList" label="label" value="value"/> </html:select> I want to embed a Struts/JSTL tag in the html:select tag that tests the value of another string ... something like this : <c:set var="testVal" value="true"/> <html:select property="agencyNo" disabled="<cut value="${testVal}"/>"> <htmlptionsCollection name="sessionData" property="agencyList" label="label" value="value"/> </html:select> This code does not compile, because compiler says Error(162): Attribute: ${testVal}"/ is not a valid attribute name So I am looking for a way to do this ... any ideas ?? Upvote 0 Downvote
Thank Venu. I guess I should explian a little more ;-) I am using a collection, and want to set disabled = true if the user is of a certain type and not otherwise. Right now the code looks like : <html:select property="agencyNo"> <htmlptionsCollection name="sessionData" property="agencyList" label="label" value="value"/> </html:select> I want to embed a Struts/JSTL tag in the html:select tag that tests the value of another string ... something like this : <c:set var="testVal" value="true"/> <html:select property="agencyNo" disabled="<cut value="${testVal}"/>"> <htmlptionsCollection name="sessionData" property="agencyList" label="label" value="value"/> </html:select> This code does not compile, because compiler says Error(162): Attribute: ${testVal}"/ is not a valid attribute name So I am looking for a way to do this ... any ideas ??