You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oliver Hinckel edited this page Aug 17, 2012
·
2 revisions
WEB Application
The simple `scriptlet.HttpScriptlet` class can be used to process HTTP
requests by writing the HTML output directly to the response.
Instead of writing the content directly to the response, the
scriptlet.xml.XMLScriptlet can be used, to build a XML tree which
is transformed using a XSL file to generate the HTML output.
The XMLScriptlet class
The scriptlet.xml.XMLScriptlet class is derived from the scriptlet.HttpScriptlet
class and provides additional functionality for processing HTTP requests.
Basically the behaviour is the same. The difference between the two classes is,
that the XMLScriptlet is working with a XML tree and a XSL file, which is
used to do the transformation (XSLT).
Additionally to this you need to create a XSL file (here welcome.xsl) to do
the transformation with the XML tree (build by using the response object and
XMLScriptletResponse::addFormResult()):