Hi , Again the problem here is we need to extract the Attribute and use the correct variable in JSP page. I am not sure is there any other option. What I would like to do is Suppose I have a text field "NAME" I will use a "NAME_CTRL_FLG" (Naming will be standardised) in my Bean. We have some complecated logic to decide whether this field should be enabled/disabled, and we will set the value of "NAME_CTRL_FLG" to true/false in action. So my requirement is just to reffer the Attribute name of the Bean in the Custom Tag and then enabling disabling should be handled by the Custom Tag. In this case binding is by naming standardization. Pls suggest if there is a better way /Is STRUTS doing something similar already?
Thanks in Advance Savant -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 15, 2002 1:27 PM To: [EMAIL PROTECTED] Subject: Re: Enabling Disabling >>>>> "Chennamakal" == Chennamakal Subramanian Savantraj <Savantraj> writes: Chennamakal> Hi, Chennamakal> Pls share with me if anybody implemented the following concept. Chennamakal> 1. Enable and Disable HTML controls based on some control flags on Chennamakal> FormBean. Chennamakal> 2. Not by using disabled attribute in each custom tag. Chennamakal> 3. Idea is to prevent Decision making statements in JSP pages. Also Chennamakal> want to handle some complex logics to decide enabling and disabling(For Chennamakal> Example, using same form for Enquiry,Edit,Insert operations and make Chennamakal> controls enabled or disabled based on the operation) Your "disabled" attribute in each tag can reference an array entry of an array of booleans, one for each "operation type". These values will be set in your action, not in the jsp page. There is no "decision making" in the JSP page. Use Struts-EL to make the variable references cleaner. -- =================================================================== David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ------------------------------------------------------------------- This email is confidential and intended only for the use of the individual or entity named above and may contain information that is privileged. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please notify us immediately by return email or telephone and destroy the original message. Thank you. - This mail is sent via Sony Asia Pacific Mail Gateway. ------------------------------------------------------------------- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

