Defending ugly old JSP.
Russell Beattie complains about the ugliness of JSP, even with the improvements of JSP 2.0. I have to agree. JSP is ugly. JSP also does very poorly in the separate-logic-from-presentation department, scoring an entanglement index of five - and JSTL does not help at all. JSP is butt ugly, but in JSP's defense:
- It is possible for JSP source code to be valid XHTML. Russell could have done this in his mock-up example by setting a variable and then using the
${var}
syntax instead of using "an embedded x:out tag within the href attribute". In theory, by validating your JSP source code as XML and by pre-compiling the JSP at build-time you can weed out a lot of potential errors. - Other popular web template languages are just as bad. Velocity, FreeMarker, and Tapestry's template language all have entanglement indexes of five as well.
- The option of embedding Java code in JSP makes JSP very powerful. Like C++, JSP gives you enough fire-power to blow your entire leg off with one pull of the trigger.
- Compiling down to Java byte code makes JSP very fast.
- JSP is an accepted Java standard, it's built-in, it's well understood, and it's easy to find experienced JSP developers.
Dave Johnson
in Java
• 🕒 11:33AM Mar 21, 2004
Tags:
Java
Posted by Glen Stampoultzis on March 21, 2004 at 08:02 PM EST #
Posted by Dave Johnson on March 21, 2004 at 11:30 PM EST #
Posted by Russ on March 22, 2004 at 01:49 AM EST #
Posted by anon on March 22, 2004 at 04:44 AM EST #
Posted by All Things on March 23, 2004 at 04:21 PM EST #
Posted by Jon Tyree on April 13, 2004 at 10:10 AM EDT #