Radio to x-ray emission of jets and hotspots