Twenty-two students were taken to the hospital as a precaution on Wednesday afternoon after the school bus they were on was rear-ended by a pickup truck in Dighton.