Javert was born in prison, and learned to defend himself quickly. One of the Prison Guards took him under his wing, taught him how to read through the Bible. He got him released and under his authority. He made sure Javert was raised with morality and honor. Leading him into become a Police Inspector.
His life will change drastically when he stumbles over Jean Valjean again after twenty years. In the end it leads him to questioning everything he knew and thought about morality and justice.
In the end it was taken from his hands.
(Dilios Note: Javert comments if anyone wants the story they can read the damn book Westley worked so hard to get published)