Hi all, in my project we're using Struts 1.3.8. I have a case of editing an organisation. Because we have two types of organisations, I'm using a BaseOrganisationForm (extends ValidatorForm) as a form bean where I've put the validation as xdoclet tags. Then I inherit this class from OrganisationForm.
OrganisationForm has the fields for both types of organisations and depending on the organisation type I do custom validation of the fields in the validate method. In the action classes I have a PrepareEditOrganisationAction and EditOrganisationAction with the later doing the real work of course. In the Prepare action I set some request attributes so I can enable or disable some form elements in the GUI. Thus I've also set the xdoclet tag for my edit action as follows: * @struts.action name="organisationForm" path="/editOrganisation" * validate="true" input="/prepareEditOrganisation.do" * cancellable="true" So that upon an error, I first go to the prepare action again and set the request attributes. However the problem is that if I put an invalid organisation name which is declared in BaseOrganisationForm everything seems to work ok. The form fields that should remain enabled are enabled (from the request attributes). If I put an invalid field at one of the OrganisationForm fields it seems to go to the prepare action but calls the input of that, without really setting the request attributes, thus the fields are shown disabled. Any ideas how I can fix this? Sorry for the long post. Regards Dimitris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org