Quoting Husted, Robert ([EMAIL PROTECTED]):
>     At Qwest we are using templates... HTML files with placeholders for data
> ${MY_PLACEHOLDER}.  We store the template in memory and then insert the data
> into the template and display it to the user.  The advantage is that our
> HTML code doesn't appear in the Servlet.  In addition, our Java code doesn't
> appear in the template... so we've cleanly separated the Java code from the
> HTML.
>
>     What is the advantage of using a JSP over a Servlet that uses templates?
> As far as I can tell, there is no advantage... we've actually done a better
> job of separating code and presentation logic using templates.  Can someone
> give me a concrete example of when JSPs might be better than a Servlet that
> employs templates?

The one thing that JSP has over templates is support from Sun. As in,
Microsoft style "we're going to spend our way to dominance". Sorry to
be so cynical, but it's been a long, long day :-)

The result of this is likely to be vendor support for JSP in various
IDE tools, as Sun will pressure people to adopt it, and possibly
devote some engineering resources.

JSP people will talk about "vendor support" and "standardization" but these
are both smokescreen. Template systems don't require any vendor support
beyond the JSDK itself, and the standardization stuff is a cover for the
fact that an application built using JSP is not 100% pure java (it uses
JSP instead, which is not Java, hence the need for vendor support).

It's only fair to state my bias: I was disappointed enough with JSP that
I created a free software template system, which a lot of people are using.
Rather than rolling your own, people can use WebMacro:

   http://webmacro.org

WebMacro was recently selected as one of the best three servlet products
of 1999 by the Java Report (www.javareport.com, current issue).

Justin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to