Rickard Oberg writes:
> Hi!
>
> > We use XMLC lots instead of JSPs (means you can get your web designer
> > to do all the HTML however and make it look funky and they don't need
> > to know anything other than HTML). But we precompile our html using
> > XMLC and deploy just the compiled classes, and don't use XMLC at
> > runtime.
>
> Just wanted to say that using JSP does *not* mean that you can't have
> webbies that know nothing but HTML. I've designed a simple Model-2 framework
> (for that OpenJoda contest) that uses JSP's with a custom taglib (i.e. no
> Java code in JSP's) and that gives me
> 1) Clean MVC. Really! V uses M through C
> 2) Skinnable apps. I can apply several different Looks&feels to an app
> without having to change the code.
> 3) AFAICT all other models either output XML which is XSLT'ed to HTML or
> work on XML in code at some point (XMLC). No such thing here.
No, the way we use XMLC is to compile the html to a java class (well,
it treats it as xml with the html dtd, but this is more-or-less html)
and then use the w3c DOM to insert/remove bits. Then the class
produces an html document when you ask for it.
This means that the webbie can produce html pages with dummy data in
them which look exactly like the end product without dynamic bits.
Then that it approved by management/whoever. Then we take the dummy
pages, XMLC them and write code which replaces the dummy data with our
dynamic data. That way prototypes aren't throw-away any more, they
are what you use in your final site.
> So, JSP != "Java code in HTML". Can be, but don't have to be.
Alright, maybe I was a bit strong on that one. But I still think XMLC
provides a cleaner mechanism for separating the job of the developer
and the web designer. They never need to edit each other's files. So
you don't get developers using dodgy short-cut html and you don't get
the webbies making it hard for the developers so they can write a page
which delivers coffee in your floppy drive as well as selling you the
latest automatic drawer-opener.
Tom
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]