Hi There,
I have a servlet which is (supposed to be) high performance (>1000
hits/minute). We have two options for creating the html-output:
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.
- 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)
any thoughts on this are appreciated.
Joost Verhagen
___________________________________________________________________________
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