Actually, that's not completely true.
afaik, India - which is one of the largest democracies in the world follows the legal process in almost all the terror related cases. The fact that they try to adapt their laws to keep up with terrorism is a different story.