Generating Output

At some point, a servlet or presentation object completes its manipulation of the DOM template. It's then time to convert the DOM to an HTML (or XML) document and stream the markup as a string back to the client that made the original HTTP request.

So far, in all the examples you've used writeDOM(). writeDOM() is a convenient method that, among other things, supports URL encoding with session data required to preserve state from page request to page request.

For Enhydra EAF-style presentation objects, writeDOM() is defined as a method belonging to

com.lutris.appserver.server.httpPresentation.HttpPresentationResponse

and the writeDOM signatures are

writeDOM(XMLObject)
writeDOM(OutputOptions, XMLObject)

For standard servlet ...

Get Enhydra XMLC™ Java™ Presentation Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.