> Just to add more information by changing code to > > ProfileDTOgetModel md=new ProfileDTOgetModel(); > @Valid > public ProfileDTOgetModel() > { > return md; > } > } > > Bean Validation is working fine, so i am confused which is right way to use > Model driven. > I took reference from > > http://struts.apache.org/release/2.3.x/docs/model-driven.html > >
In our applications we do this: @Validations( visitorFields = { @VisitorFieldValidator(fieldName = "model", appendPrefix = true) } ) public String execute() throws Exception { Not sure what the differences are. Regards, Christoph This Email was scanned by Sophos Anti Virus