Two men have been jailed at Kingston Crown Court for assault on police officers.