Yep. The browser doesnt submit a value for the field if its disabled. If your using a request scoped actionform then you will either need to reload its value from <wherever> or add an additional hidden field on the form to submit the value. If its a session scoped form, just make sure that you dont clear it in reset.
btw: if this is a security thing then you must make sure that your setters (or something else server side) dont accept different values for these fields when the user hasnt got appropriate rights as a user can easily play silly buggers with the url and script kiddies can easily spoof POST requests - both bypassing any kind of client side validation or 'security'. -----Original Message----- From: Arne Brutschy [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 February 2004 21:32 To: Struts Users Mailing List Subject: Getting data from a disabled form field Hi, I have a problem with disabled form fields. I'm using a user entry form, which fields can be edited by the current user based on his group memberships. So a normal user without admin status cannot change the uid, as this field is disabled. My problem is, that after submitting the form, validation fails because of the validator which cannot read the uids field context (I assume because it's disabled). Trying to get the form data returns an empty string. Anyone encountered this type of problem? Is there any way around it? Regards, Arne --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]