request:getParameters

Purpose

Used to access the set of values of a request parameter.

If the request parameter exists then the returned sequence contains an item for each of its values. If the request parameter does not exist then the result depends on whether a default argument was provided. If it was then it is returned as the result of this function, otherwise an empty sequence is returned.

Signature

request:getParameters [name, default]

Parameter

Name Description Type Use
name The name of the request parameter xs:string required 
default The value to return if the request parameter is not present xs:string optional 

Examples

Request the following XDIME page using the URL following example.

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:pipeline="http://www.volantis.com/xmlns/marlin-pipeline">
  <head>
    <title>request:getParameters</title>
  </head>
  <body>
    <p>Parameters: <pipeline:value-of expr="request:getParameters('par')"/></p>
  </body>
</html>
http://localhost:8080/mcs/test/test.xdime?par=aaa&par=bbb

Related topics