i was doing the same thing.
I am doing this way.
I am adding attributes in formbean respective to fields which has boolean
values that it is read only or not.I am setting the values in the action
depending on user role.
Then i enable and disable the fields in jsp through javascript and getting
the values from form bean.
thanks
-----Original Message-----
From: B Manikandan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 2:10 PM
To: struts
Subject: Enabling/Disabling of form fields on page load
Hi,
I have a requirement where I need to enable/disable form fields on
page load up.The enabling/disabling depends on user access and I have
the access rights as on object in context.
How do I use this object ? I do not want to resort to <logic:equal>
as my code will become big.
Mani