|
Whitebeam Template Reference Documentation
|
System Template
env.QueryString()
Decoded query parameters from the URL - eg after the '?' character.
Syntax
string = rb.page.env.QueryString(realReq)
Parameters
The 'env.QueryString' method takes 1 parameter:
Name | Type/Value | Range/Length | Description | realReq | bool | | Optional.
Set to 'true' to retrieve information about the original request where this is an error page handler.
|
Results
The 'env.QueryString' method returns string:
Type/Value | Range/Length | Description |
string |
  | |
Remarks Returns the portion of the URL after the query '?' character. If there is no query string this method returns the empty string. Modified behaviour from Whitebeam 0.9.19 onwardsBy default the presentation serves up information about the page actually being served. If the single parameter
is present and has a value of 'true' then the engine returns information about the page requested by the client.
The only situation in which these two are different is in the case of an error handler page (eg NotFound.rhtm).
In this case passing no parameter would simply return information about the NotFound.rhtm error page, which is
generally not very useful. Passing 'true' as a paramter will tell the handler about which page was actaully requested by the
server. |
|
(loadtime : 82ms) |