By bloid
via weblogs.java.net
Published: Apr 18 2007 / 22:24
That’s supposed to be a rhetorical question, of course they’re dead. They died a long time ago when it dawned on us that they were nothing but untestable, overweight slobs that only ever existed because of ASP. Anybody who ever used JSPs has at some point, sworn by them, marveled at how great they are and felt really, really excited to write actual Java code inside pages. But it was only a matter of time until some of the lesser known facts about JSPs became more and more prevalent to the point of that templating languages were forced into creation to combat the shortcomings of Java Server Pages.



Comments
bloid replied ago:
An opinion piece, and an opinion I don't agree with, but hey-ho...
krishnas replied ago:
i don't agree. AJAX may not replace JSPs. but sun will reinvent serverside components to fit with the AJAX
jcunningham replied ago:
i totally disagree with the article too
daniel replied ago:
I kind of agree with what he's trying to say. I mean, pure JSPs really aren't such a good idea. It's a much better practice to use something like Wicket or Tapestry. However, I'm not so naive as to think that AJAX is even a peer to the JSP technology. That's like all the discussions I've read about Rails replacing MySQL...
mostlyharmless replied ago:
Thank you, Daniel for pointing out the most obvious thing that people are ignoring, or at least not commenting on. AJAX != JSP. Its two different things entirely.
If the author of this article is suggesting that coding in scriplets in JSP is dead, then I'd say welcome to 2002.
Its a weak article, as denoted by all of the voters against this link. I personally have never seen an article get so many negative votes.
ilazarte replied ago:
rails replacing mysql? they must mean sqlonrails ;)
willcode4beer replied ago:
One could simply NOT put java scriptlets in the JSP's (which is the way its supposed o be anyway).
ggeremy replied ago:
This is obviously a tongue-and-cheek article. I don't think he means they're literally dead but are getting considerably phased out. His assessment of Ajax is very accurate. I prefer using a light template tool like StringTemplate to return mini-Ajax views than JSPs, it makes the most sense.
As AJAX is becoming more and more popular, JSPs are getting further phased out. Lot of developers prefer to return chunks of HTML from the server rather than an actual dispatched forward. A lightweight and powerful template language is much more suitable here as your AJAX interface view will be an aggregation of snippets of HTML returned from the server. Doing this using JSPs would add a level of complexity that is both undesired and unneeded.
ggeremy replied ago:
A nice discussion of this provocative topic:
http://www.theserverside.com/news/thread.tss?thread_id=45080
Voters For This Link (13)
Voters Against This Link (15)