A James Cook High School student was taken to hospital after being assaulted on school grounds.