Thanks a lot David..That sounds a good solution.Let me try it out.
What is Struts-EL about? Where can I look for some info?
Rgds
Savant
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:dmkarr@;earthlink.net]
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:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
-------------------------------------------------------------------
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:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>