Is a Court-Ordered 'Pledge' Appropriate?

A Mississippi judge this week jailed a lawyer for refusing to recite the Pledge of Allegiance in court. The Supreme Court long ago ruled that schools cannot force students to recite the Pledge. Do you think this judge has the right to do so?