Joshua Jackson may have picked up a thing or two from "Karate Kid: Legends" ... we got video of him going H.A.M. in a boxing gym with a trainer. Watch the video ... the 47-year-old actor ditched his shirt for the workout, really working up a sweat...