JSP does NOT suck! Uttering those words is against the conventional wisdom of so many at javablogs.com and elsewhere. I feel the expectation from many Java developers – for JSP to provide easy seperation of HTML and logic – by default – is unreasonable. If that were it’s main goal – then it’s a failure. But if you look at JSP as a PHP/ASP/CGI competitor – feature for feature it’s stands on it’s own two feet. What’s missing is the availability of it for your average web dev hacker.
Don’t you think MovableType could be written in JSP? Of course it could. And it probably would be easier to maintain, more scalable, and easier to extend.
But not to deploy. The market for MovableType would shrink to such a size as to not make it worth the effort.
Seperation of logic and design in JSP does suck. But honestly – is it any better with CGI, PHP, or ASP?
Just as in apps developed with those languages, if the goal is for designers to manipulate HTML and avoid dangerous logic code, then you embed a templating language for them to interact with. Would you let a web designer touch your CGI scripts? Hell no! Then why would you in your JSP?
MovableType does this. Why couldn’t a JSP app do the same? Fact is – they can.
There are a growing number of templating languages that suit this purpose and are available for Java developers today.
Saying JSP sucks is like saying Perl sucks.
And that couldn’t be farther from the truth.