Well then, I'm unable to sleep, so I'll try to refine my ideas.
First, we need to identify the question.
How can the United States win the War in Terror?
Terrorism is usually defined as the use of violence or the threat of violence against civilians (or non-combatants) to achieve a (generally) political goal.
The simple answer to the question is that you can't. Terrorism is a strategy of war. It would be like winning the war against flanking maneuvers. There are ways you could end terrorism forever. However, none of them are good ideas (amongst them we have mind control the world, nuke everyone, end all disagreements between people, ect ect ect). Therefore, because an absolute end to terrorism doesn't really work, we have to try to minimize it.
Let's compare terrorism to mustard gas for a moment. Mustard gas sucks. However, it was a pretty effective weapon during WWI. What happened to it? First of all, it was reciprocated. You gas us, we gas you. 2nd, countermeasures were developed (gas mask). Third, the international community as a whole banned it. Finally, it became largely obsolete.
First we have reciprocation. The Mutual Assured Destruction effect. If a weapon (terrorism is more of a strategy, but we'll call it a weapon) is pretty dangerous and horrifying, you may not want it used against your own troops. So you only have the weapon to deter the other guy. This only really works when you have two nations both willing to terrorize each other. Sadly, the civilized world is NOT willing to reciprocate, and most of the NGO terrorist types wouldn't care if we did (they don't have a civilian infrastructure to terrorized). We can hardly Tomahawk Tehran, can we? What would CNN do.
2nd, we have adaption. Basically, the technology no longer becomes the best way to wage war. Doesn't apply to terrorism. It remains dammedably effective.
3rd, condemnation. Somewhat similar to reciprocation. The whole world has spoken out against the weapon. You risk bringing the whole world's wrath down on your head if you use it. Where are we bringing it down on though? Almost the entire world doesn't like terrorism, but they have no real infrastructure to destroy.
4th, obsolete. See 2.
For as bad as terrorism is, it isn't like mustard gas. All the outcry of the world can't stop it easily, there isn't an immobile target. And, for the little guys, it remains their best (only) chance of fighting against any medium power. Nothing Al Qaeda could field as a traditional army could stand against the US (or most organized countries, tanks win wars, no?).
If you want to prevent terrorism, you have to go look up at the non-possible solutions. Option one is the kill them all approach. You want to blow yourself up to kill a few Americans? Great, go ahead. We'll then find your entire extended family, interrogate them roughly, then execute them. Rinse, wash, repeat. Before long, people are going to squeal on their relatives. Cohesion breaks down, people offer up their organization in return for their families (there will always be those who value their families or person more than their country or cause). Problem is, America can hardly do that. It'd be horrible, and we lack the political will to do it (interestingly enough, that plan would get into genocide territory, which is in the condemned stage earlier, so we'd get the rest of the world attacking us).
Mind control is right out. So that leaves ending conflict. Fun task right? We've got a two fold task then. 1st, remove the reason why most of these chaps are becoming terrorists. 2nd kill those who are still terrorists. There's a long list of interesting problems we get to with #1. A big motivator right now is religion. I'm sorry to offend, but it's Muslim terrorists that are the current issue. Once again, we have the unethical solutions (nuke everyone?). However, there will always be those within a religion that are radicals. But we exactly have Rangers rappel into a Mosque and blast the radical Imam. This leaves with a end program that will have to be focused on alleviating economic conditions, and preaching (heh) moderate Islam where ever possible. Simultaneously, there will be areas where this won't work (the die hards) you can either wait for them to die out by themselves (like communists, it clearly doesn't work, and we have four or so hard core communist countries left) or we have to take action against then. Taking action though (shooting the crazy Imam) creates additional resentment and martyrs, starting the cycle over.
So, from my perspective the path of peace would be best. Make the Middle East less of a hell hole (give people paying jobs that aren't anti-America). Then wait for everyone to get the idea that life is good under democratic capitalism (or even non-authoritarian socialism, I'm fine with either). America has to consider our own political will though. The American public isn't going to stand and let ourselves get attacked. Blood begets blood. I'm sure as hell not going to stand for 2,974 of MY countrymen being killed by these fucking barbarians (sorry for the nonPCness, but terrorism IS a barbaric tactic, and it is what the American public are seeing). This puts the country at a tough place. You don't think that our generals feel the same way that I do? It's worse for them. They failed at defending those people. Blood begets blood.
For us to win? We'd have to have three goals, and be successful in all of them
1) Improve conditions in entire world to a tolerable level, make terrorism unappealing.
2) Make terrorism attacks tough to carry out (prevent them from getting WMDs firstly). You still have the problem of the billion and one Kalashnikovs out there (this is where you get into gun control and arming the people, it's not helped by the fact that you're not dealing with the US, you're dealing with a barely controlled Middle Eastern country).
3) Destroy those who do attack.
It's a lost cause basically. Terrorism will always be a viable tactic. You want you're "America won the war!" Coup de grace? Kill everyone I guess, then kill everyone who had a problem with killing them all.