Returns the value of the parameter of the indicated requests.
1 http.request.getParameter
<http.request.getParameter
name='name'
type='string|integer|decimal|date|timestamp'
null-if-empty='true|false'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the parameter of which you want to obtain the value. | |||
Atype | string | Data type of the value to be obtained. If this attribute is not specified , the returned value is of string type. | |||
Anull-if-empty | boolean | Returns NULL instead og an empty string. Useful if the request is used to obtain the value of a field on the form of character type in a transactional object. If the field is empty, the system does not return NULL unless this attribute is specified. |
Returns | |
---|---|
Type | Description |
object | Returns the value of the request parameter HTTP servlet. |
Exceptions
script is not in http request mode
It is called from command line because the request HTTP servlet does not exist.
Example
Obtain the value of a request parameter HTTP servlet.
Copy
<xsql-script name='http_connection_parameter'> <body> <println> <http.request.getParameter name='cond' /> </println> </body> </xsql-script>