The main reason what scriptable languages are common for Web 2.0 apps is that (whether it's a good idea or not), everyone wants to get out the Next Big Thing as quick as possible.
JEE has some significant advantages - it's performant, it's secure, it scales well, but it gets a lot of these advantages by requiring careful design, and that slows down the process.
With a system such as PHP, RoR or Django, you don't have to sync up all the data types, you don't have a compile-and-build cycle, you just code,
test, crash, edit, code, test, crash.
etc. until you have an app. If nothing else it "looks" productive, since you're always typing away at something instead of "just sitting there" (
i. e.: thinking).
On the whole I prefer the ability to sleep well at night that I get from using a more rigorous platform, but not everything needs to be ultra-reliable and ultra-secure, so I do PHP or whatever on occasion myself. Plus, they're good prototyping environments if you believe in Fred Brook's advice on "Plan one to throw away".
[ July 25, 2008: Message edited by: Tim Holloway ]