The purpose of each of these reactions is to teach the dog something. It's important to remember that you will never teach your dog nothing. In other words, he will always learn from you whether you realize it or not. This is why it's important to realize what you are teaching the dog by your actions. You may be teaching him the wrong lesson without knowing it.
Anger has no part in any teaching process.
However, correction alone is not enough to create a well trained dog. Remember that you need to teach the dog what you want as well as what you don't want. Show him the desired response. Needless to say, every time the dog starts to respond, he should be praised. For additional information on training your dog, refer to the PAWS recommended reading list for books on dog behavior and training or call PAWS for further help.