I completed the project last summer and we wrote our own parser which
recognized SSI-like tags.  Since that time I've realized that there are
better ways of implementing that type of solution.
>From what I can tell, the options for "expanding" HTML pages with
dynamic data are as follows:

Web server-dependent SSI tags
Web server specific scripting languages (Netscape/LiveWire,
Microsoft/Active Server Pages, etc.)
Application Servers usually provide their own template schemes (NAS,
WebLogic, etc.)
JSP (Java Server Pages) seems to be gaining in popularity
And finally, (my preference) - XML based templates.  You can create a
completely portable and customizable template engine that's not
dependent on your product choices.

Contrary to some, I think that portability is important for web server
apps - especially if you want to use them again with different
solutions/environments.  So, if I did it again (and I didn't have an App
Server handy), I would use one of the several, freely available, XML
parsers to implement a XML/DOM/SAX-like solution.  I would not use JSP
(embedding javabeans and related tags into the HTML file) because I
believe that a web designer would be the person maintaining those pages,
not a developer.  With JSP this web page designer would have to know
about the database instance name/location, javabean name/parameters and
other implementation specifics.  IMHO - the presentation layer should be
*completely* separate from your logic.

I sure hope this doesn't spark another heated debate.  If I'm wrong
about anything or anyone has a different opinion, please correct me
nicely ;>)

delicate self esteem -
Robert

Marcel Ruff wrote:

> Hi
>
> you wrote about servlets and html-templates.
> What possibilities are there to make html-templates
> and where is there a good parser to build the final html file
> from the template?
>
> thanks, Marcel
>
> --
> Marcel Ruff
> [EMAIL PROTECTED]
> http://www.lake.de/home/lake/swand/
begin:vcard 
n:Ritchy;Robert
x-mozilla-html:FALSE
org:BDM Denver
adr:;;1999 Broadway - Suite 2000;Denver;CO;80202;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Software Development TL
x-mozilla-cpt:;2
tel;work:303-672-8917 / 247-1150 ex 8917
fn:Robert Ritchy
end:vcard

Reply via email to