>>>>> "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:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>