Jon,
I wrote:
> > Packages like ECS (and IMHO, JSP) suffer the same fundamental
> > problems as embedding the HTML in println statements in the java
> > code. JSP minimizes the issue by reversing the situation and
> > emphasizing use of JavaBeans, but it's still fundamentally flawed
> > - in my opinion, of course.
You reply:
> HELLO! You don't have to use ECS for ALL of your pages or ALL of your
> content. ;-) I'm not quite sure why people keep on getting hung up on that.
Perhaps because that's not the message you send when you post
about ECS?
I have no qualms at all about using something like ECS in areas
where I'm generating HTML from scratch, or where ECS provides useful
capabilities such as (as you suggest) translating database values into
HTML entities. However, in pretty much every post in which you
mention ECS, it's in the context of an alternative to embedding HTML
in your source code. This, in my opinion, is not a good approach.
Embedding HTML is awkward. Replacing it with embedded code to
generate HTML doesn't address the issue.
As I said, I haven't given ECS any detailed attention. It
probably has some useful utilities. I would, for example, love to
have something that lets me define styles (preferably in native HTML,
maybe CSS) and simply say "This is a header of such and such a level"
and have the package generate appropriate HTML. As an alternative to
embedding HTML in code, slightly preferable. As an alternative to
using some sort of templating system, not worth the trouble.
> You can even use ECS in your JSP/WebMacro/FreeMarker/etc pages.
>
> My point is that any time you have any sort of Html output where you are
> generating the Html tags yourself in your code, you should replace that with
> ECS.
A valid point. Has anybody used ECS in combination with a templating
system? Any commentary on how well ECS plays with others?
Steven J. Owens
[EMAIL PROTECTED]
[EMAIL PROTECTED]
___________________________________________________________________________
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