struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Re: Strange issue with Model driven and Bean validation
Date Tue, 15 Oct 2013 12:31:29 GMT
> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message