OpenWGA 7.11 - TMLScript reference

Property :


On object WGA
Usage Returns the JavaEE object representing the current HTTP request
Description Grants access to the JavaEE request object of type "javax.servlet.http.HttpServletRequest". A complete reference of the available functionalities can be found in the JaveEE API Documentation.

However, these are the most frequently used methods of this object in OpenWGA:

WGA.request.getParameter("urlparameter") - Returns a URL parameter

WGA.request.getHeader("header-name") - Returns the value of a HTTP header that was sent by the browser

As a shortform syntax you can also use the name of an URL parameter as property of the Request object to read its value.

Writable False
Return value Java object of type javax.servlet.http.HttpServletRequest
Allowed in script types
  • WebTML pages and normal WebTML actions

Acessing an URL parameter "firstname" in long and short form: