When I was in Vietnam so many years ago (artillery) I sometimes wondered what I would do if I thought I was going to be captured. Stories of torture and atrocity were common place and I wondered whether or not I could withstand such things. It never came to that, but there were times I was pretty scared.
I've read the accounts of many who were captured and tortured. While I know the hope of returning to their loved ones and home sustained those brave soldiers, I also know somewhere in their minds they were also comforted and rebelliously sustained knowing they held the high moral ground and that their captors would someday be punished for their crimes.