struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Faria <andrefa...@mandic.com.br>
Subject [S2] Prepable and Validate
Date Wed, 17 Jan 2007 16:37:49 GMT
All,
      
    I have these methods in a Action:
   
public action Person extends ActionSupport  implemens Preparable {
    public String input {...}
    public void prepareInput{..}
    public void validateSave(){
       addFieldError("person.name","Error");
    }
    public void save(){...};  
    public void prepare(){};
}
   

    Before the method input the method prepareInput is called by the 
Interceptor, but the if I put an error in method validateSalve (that is 
called by the interceptor too before the method save), the input result 
will be called, but without call the method prepareInput... Is that correct?

Have a Nice Day,

Regards,
*/André Faria/*
//

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message