Folks,

I think Enhydra's tools have a lot of promise in XML space.
Their XML "page compiler" (XMLC) is a well thought out framework
but I feel it's somewhat inferior to template-style alternatives
(Freemarker/WebMacro, JSP, etc) in context of a presentation layer
used with servlets, because it doesnt allow for flow control (no if/else in
the template) and imposes constraints that can be avoided if XML is not used
to represent the data, particularly if you want
to mix HTML generated by your code and HTML generated by XMLC framework.

This is not a criticism of Enhydra or the XMLC tool. In my
opinion, Enhydra and its frameworks have more promise in the freeware app
server space than their competition (Hamilton, Locomotive, etc)
but it doesnt mean that XMLC is the best tool for the job.

Alex.


Wayne <[EMAIL PROTECTED]> writes:

>
>OK. I took a brief look at the docs. It looks impressive. I've only dabbled
>in JSP and servlets. From what I've seen, this seems to be a superior way
>to
>separate presentation from business logic. Why?
>
>- Presentation uses standard HTML, with *NO* non-standard tags. (i.e., is
>compatible with any standard, off the shelf HTML editor)
>- Works with XML docs.
>- Compiles HTML (and XML) to Java code
>- Business logic can access the DOM structure thru the generated Java code.
>- Dynamic content is added when the code executes.
>
>OK, so what am I missing. What's the drawback?


>----- Original Message -----
>From: Anukool Lakhina <[EMAIL PROTECTED]>
>
>
> > Has anyone considered using Enhydra's XMLc compiler? Its an alternative
>to
> > out.println() method. It basically takes an HTML file, compiles it into
>a
> > java class and exposes the set/get methods of pre-specified tags. (It
>uses
> > DOM trees to do this). Then you can set any dynamic content on your page
>and
> > when done, call the this.toHTML() method to output the HTML code.
> >
>


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com

___________________________________________________________________________
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