A couple of choices: Actually put the <html:text> inside the logic and use an else clause.
Use struts-EL for the disabled attribute calculation ${OrganizationSession.isProvider==0?"disabled":"enabled"} Edgar -----Original Message----- From: Mouratidis, Georg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 6:40 AM To: '[EMAIL PROTECTED]' Subject: dynamically disable a input field. Greetings i want to disable some input elements but only if a bean property is not set: e.g. <logic:equal name="OrganizationSession" property="isProvider" value="0"> here i want to set a variable to be used than in each input element. e.g. something like disabled="disabled" </logic:equal> in the inputs than i would like to use the above setted variable. somthing like : <html:text name="CatalogProfileDataForm" property="catalogID" disabled="value of the above variable named disabled"/> is this possible? can somebody help? any other suggestions? thx in advance mit freundlichen Grüßen Georg XL. Mouratidis Web Application Developer Heiler|Software AG Mittlerer Pfad 9 D-70499 Stuttgart Tel: 0711-139 84-265 Fax: 0711-866 63 01 Email: [EMAIL PROTECTED] Connecting Buyer and Supplier http://www.heiler.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>