The point shouldn't be which one automatically compiles, or which one needs to be translated, or any other behind-the-scenes technical details. Each of JSP and servlets has a distinct place in a web application. Using one when the other is appropriate just because of some implementation detail is not the way to create robust and well-designed applications.
Originally posted by Jeroen T Wenting: I always wonder why so many people seem focussed on selecting a single magic bullet that will solve all their problems, instead of a combination of things that will do it so much better.
I believe there are a number of reasons that we see so much of that:
Novice programmers that have learned one technology or the other (usually JSP) and use it exclusively since they aren't famililar with the other.
Programmers who makes decisions based upon specious factors such as "you don't have to compile JSPs" and use them exclusively just to get out of having to compile Java code.
Know-nothing CTO's or other people in power who don't bother to keep current and make rules that make no sense.
Those who just haven't learned any better yet.
We're doing our best to reach them all! [ December 15, 2006: Message edited by: Bear Bibeault ]
Jeroen T Wenting
Joined: Apr 21, 2006
Were it just related to Java (or even IT) that would be the obvious list of reasons indeed. But the same thing can be observed in every aspect of life. Companies deciding to allow travel only using a single airline and hotel chain for example, even if other choices make more sense in many cases (sometimes cutting days, more often many hours, off of travel schedules). People taking the car even if using a bus or train on a particular route makes more sense (I see that every day, commuting a route where the train is about 10% cheaper and 50% faster than the car yet droves take the car anyway). Always watching the same TV channel, even if there are better ones for specific purposes (like a news channel to catch the news, or a dedicated movie channel that's showing your favourite movie that night while your preferred channel shows some soap opera rerun you've seen a dozen times already). My parents are somewhat like that, they're so focussed on the idea that German television is superior to Dutch that they'll watch a dubbed movie on a German channel and complain about the dubbing when that same movie is shown at the same time on a Dutch channel in the original with subtitles. Or always shopping at the same store, even if another store has superior goods of some kind at a lower price and is right next door.