OpenWGA 7.0 - TMLScript reference

TMLContext "this"
Property :


On object TMLContext "this"
Usage Returns the JavaEE object representing the current HTTP server response
Description Grants access to the HttpServletResponse-Objekt of your JavaEE server of Type "javax.servlet.http.HttpServletResponse". See the JavaEE API Documentation for details of its functionalities.

You can use getWriter() / getOutputStream() on the response object to directly write out response data. Be aware however that only one of both is active in one request, depending on the current media key and if it is binary (getOutputStream() is active) or not (getWriter() is active).

Be careful when setting response properties as OpenWGA internally uses the same object to store request data. Overwriting OpenWGA properties may result in malfunctionings.
Writable False
Return value Java object of type javax.servlet.http.HttpServletResponse
Allowed in script types
  • WebTML pages and normal WebTML actions