TUPELO, Miss. – When a Mississippi judge entered a courtroom and asked everyone to stand for the Pledge of Allegiance, an attorney with a reputation for fighting free speech battles stayed silent as everyone else recited the patriotic oath. The lawyer was jailed.

Attorney Danny Lampley spent about five hours behind bars Wednesday before Judge Talmadge Littlejohn set him free so that the lawyer could work on another case.

Lampley told The Northeast Mississippi Daily Journal he respected the judge but wasn’t going to back down. “I don’t have to say it because I’m an American,” he told the newspaper.

The Supreme Court ruled nearly 70 years ago that schoolchildren couldn’t be forced to say the pledge, a decision widely interpreted to mean no one could be required to recite the pledge.

On Thursday, the judge again asked those in the courtroom to pledge allegiance to the flag, which stands to the right of the bench.

“I didn’t expect the Pledge of Allegiance, but he asked me to do it so I did it,” said Melissa Adams, 41, who testified in a child custody case that was closed to the public.

Lampley, 49, previously refused to say the pledge in front of Littlejohn in June. He was asked to leave the courtroom, but returned after the pledge.

The attorney told the newspaper Wednesday it was a problem for the judge and himself to work out, yet blogs across the country lit up with fiery comments and support for both sides.

And in the small town of Tupelo, the birthplace of Elvis with a population of about 35,000, some were infuriated by Lampley’s silence.

“I thought he was a disgrace to the United States,” Bobby Martin, a 43-year-old self-employed maintenance worker, said of Lampley. “If he can’t say that in front of a judge, he don’t deserve to be here” in this country.

Others voiced support for the attorney.

“I’m speechless. The judge needs a reminder copy of the First Amendment,” said Judith Schaeffer, a Washington attorney who, along with Lampley, successfully sued the Pontotoc school district in northern Mississippi in the 1990s to stop students from praying over the intercom.

Lampley also was victorious representing a Ku Klux Klan leader when a county in the Mississippi Delta tried to prevent a rally.

“Danny’s going to stand up for everybody’s principles,” she said. “Danny loves the Constitution. He’s a staunch defender of constitutional rights.”

Lampley was representing a client in a divorce case when he was found in contempt.

The Pledge of Allegiance has faced challenges since it was published in 1892.

In 1943, the Supreme Court ruled that children in public schools could not be forced to salute the flag and say the pledge. In 1954, the words “under God” were added to the pledge, when members of Congress at the time said they wanted to set the United States apart from “godless communists.”

In March, an appellate court upheld references to God on U.S. currency and in the Pledge of Allegiance, rejecting arguments they violate the constitutional separation of church and state.