On Tue, 10 Aug 1999, John McDonald wrote:
[ ... ]
> So I POST this question again....in a different light. How difficult
> would it be to come up with a 100% pure java API which would
> encompass fundamental HTML(<head><body><table> would be a great
> start) and then make calls to this API just like we do with every
This sounds like you're talking about an HTML generation library, say
a class that contains a bunch of static methods where you can make a
call like:
HTMLGen.BeginHTML(out, "This is an HTML Page");
and it will generate something like:
<HTML>
<HEAD>
<TITLE>This is an HTML Page</TITLE>
</HEAD>
I believe such packages exist.
In fact, something like ECS is really not so different than something
like this, where instead of calling methods to generate HTML on the
fly, you generate an object that represents an HTML document, and then
output it. This may seem more complex, but it is actually cleaner and
more object-oriented.
> other darn OO language. Or, how about we store the data in a txt
> file, something in the java.io package to just read the entire file
> into the script, and then output that to the web? Great idea.
Well, it's easy to write a class that will read in some text (say an
HTML header or footer) and output it. I think someone gave an
exapmple of that. But this is really simplistic. As soon as you want
to do more complex things, like more dynamic output, and tables,
forms, and such, you're going to need some of the features that JSP
and template systems and FreeMarker and WebMacro have.
Remember, in general, things that are more powerful are more complex.
You may ache for something simple now, but soon you will be aching
worse for something more powerful.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[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