>>> Joost Verhagen <[EMAIL PROTECTED]> 20-Jul-00 1:23:42 PM >>>

>1: using 'template'-html files which are read by the
>servlet, streamed (filling in the 'gaps') and returned,
>when a request arrives (in the doget/post).
>2: using xml, by parsing the html into an XML object
>at servlet-init time (init()) and cloning that xml-object
>when a request arrives (doget/post), setting the different
>nodes and printing the xml/html-tree to the output.

>My questions are the following:
>- What is more 'costly'?: cloning an object or streaming a
>file (I/O), especially in a high-hits envirionment.

It depends on how you find the gaps in the HTML and how many gaps
there are.

Why do you have to clone the XML structure?

It seems to me that the best way to do is read in the XML structure
and then parse through the XML structure sending output to a stream.
That's not cloning. It would be quite quick.


- Are there better methods for doing this? (for now we cannot
>use jsp's and i do not want to wrap the html in strings)

JSP is the ideal structure because it is compiled.



Nic Ferrier

___________________________________________________________________________
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