Conversation so far:
When did James Stockdale become a prisoner of war?
On 9 September 1965, Stockdale ejected from his Douglas A-4 Skyhawk. He parachuted into a small village, where he was severely beaten and taken prisoner.
What happened while James Stockdale was a POW?
As the senior Naval officer, he was one of the primary organizers of prisoner resistance.
What happened during the 7.5 years James Stockdale was a POW?
Tortured routinely and denied medical attention for the severely damaged leg he suffered during capture, Stockdale created a code of conduct for prisoners which governed torture, secret communications, and behavior.
What else transpired during James Stockdale's time at Hoa Lo prison besides being tortured routinely and denied medical attention?
In the summer of 1969, he was locked in leg irons in a bath stall and routinely tortured and beaten.

Question: How did he escape being a POW?
Self-contained rewrite: How did James Stockdale escape being a POW?