Multi Profile web application and Validation

2006-04-18 Thread Angel Navarro
Hi, I have a web application with Struts 1.3. This application is multi profiles. For example, when the profile is Manager, the page have 3 inputs, but if the profile is User, the page have 2 inputs. In this case, how can I validate this form? How can I have a system validation that having an

Re: Multi Profile web application and Validation

2006-04-18 Thread Ted Husted
If different inputs are required according to role, then you may need to fall back to the standard validate method to do that part of the validation. Other parts of the validation could still be done by the Validator framework, but you would also include a custom validate method that would look at

Re: Multi Profile web application and Validation

2006-04-18 Thread Angelo zerr
Hello Angel, I don't know your solution, but I think you will be perhaps interested with FormView project. This taglib is able to manage a behaviour for a field in your page. So you can define Role for a field and so your inputs will be READ-ONLY, READ-WRITE, INVISIBLE,... accoding to the role. It