(cc'd back out to servlet interest -- sorry, I don't have the bandwith
for one-on-one mail threads...)

> I guess I didn't state my question clearly: In what situations is is
> better to use HTML generation (and why)? I understand the reasons to use
> a template engine, and what most of the drawbacks are. I don't know when
> to use HTML generation.

I'd say that HTML generation is useful when 1) the person writing the
servlet code is the same as the person writing HTML; 2) the code
generating the HTML may not be part of the servlet directly, but called
from it -- could happen when a component not only sends HTML to web
browsers, but sends it as mail or displays it in a Swing component; 3)
you want to support many presentations of the same base document -- for
example, to be able to generate content for HTML 3.2 browsers that's
different from content for HTML 4.0 browsers that use stylesheets; or 4)
personal preference.. :) Sometimes it comes down to that.

I haven't run into many of type 3) (does ECS do this? 'twould be handy
Jon (nudge nudge, wink, wink)) but a good library should be able to do
this sort of thing effortlessly.

.duncan

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to