I would strongly advise against any jerking of the leash or tapping on his side.

This will further convince him that other dogs are bad news because he will only feel this unpleasant sensation when they are around. It will teach him to become more aggressive towards other dogs rather than teaching him to stop being aggressive.
People who's dogs show aggression in this way naturally do things like this to try and teach their dog not to do it. Unfortunately, they end up teaching the dog the wrong thing as punishment in general tends to do. The dog becomes more aggressive as a result. Please don't do anything like that if you want to improve his behaviour towards other dogs.

The dog doesn't get it that he's being jerked because he's being aggressive, he thinks it's only happening because there is another dog there so he tries even harder to drive that dog away.