Hi,
I'm trying to test some basic validations on an action:
public class CreateUserAction extends ActionSupport implements
ModelDriven<User> {
private User user = new User();
private IUserDao userService = new UserDao();
public String execute() {
if ( this.userService.save(this.user) ) {
return SUCCESS;
}
else {
return INPUT;
}
}
@VisitorFieldValidator(message="", shortCircuit = false,
appendPrefix = false)
public User getModel() {
return this.user;
}
public void setModel(User user) {
this.user = user;
}
}
Is there anyway to manually check possible validation errors on this
action as if it were called by the Validation interceptor?
Thanks,
Steven
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org