hi, now i can answer my own question.
i did it using javascript in onload(); thx to all for helping -----Original Message----- From: Mouratidis, Georg Sent: Dienstag, 10. Dezember 2002 14:31 To: Struts Users Mailing List Subject: RE: dynamically disable a input field. hi, i did it your way but now i have problems with the focus attribut in the <html:form> tag. if the element is disable i cant set the focus. of course not. i try so many things to set the attribute dynamically but i didn't solve it. can you help again please? thx in advance -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 10. Dezember 2002 13:05 To: [EMAIL PROTECTED] Subject: RE: dynamically disable a input field. If u dont want to wory about netscape then i think u can go the other way.And i Am talking about netscape 4.77. So in the other case u can use logic equla in just one place as u said. <%!String isDisbled="false"%> <logic:equal name="OrganizationSession" property="isProvider" value="0"> <%isDisbled= "false";%> </logic:equal> and then in ur html:text just use this <html:text name="" property="" disbled="<%=isDisbled%>"> then u dont need to do this 25 times as u said. -----Original Message----- From: GMouratidis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 12:56 PM To: struts-user Cc: GMouratidis Subject: RE: dynamically disable a input field. the disadvange is that i have to do it for 25 inputfields. 25x <logic:equal>...</logic:equal> 25x <logic:notEqual>...</logic:notEqual> is this the only way you know? thx georg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 10. Dezember 2002 12:51 To: [EMAIL PROTECTED] Subject: RE: dynamically disable a input field. Hi, I had similar functionality.But I will advice u not to use <html:text disable="true"/> because it does not work with Netscape. So instead i used logic:equal tag and bean write. <logic:equal name="OrganizationSession" property="isProvider" value="true"> <html:text name="" property=""/> </logic:equal> <logic:notEqual name="OrganizationSession" property="isProvider" value="true"> <bean:write name="" property=""/> //Also use html:hidden if u stil want to pass the parameter in request <html:hidden name="" property=""/> </logic:notEqual> hope this helps.. regards, Shirish -----Original Message----- From: GMouratidis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 10, 2002 12:40 PM To: struts-user Cc: GMouratidis 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]> -- 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]> -- 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]>