Whitebeam Template Reference Documentation

Site Map
 
Home
 
Application Guide
Reference
  Installation
  Configuration
  XML Markup
  JavaScript Classes
  ROM
  Templates
  Environment
  Dev Process
  Tools
  External Links
  Example libraries
Community
Contact Whitebeam
To-Do
Download
Credits
Licence
Whitebeam Users
 
 
 

Whitebeam Template Reference Documentation

System Template

env.PathInfo()

Trailing path information from the URL requested by the client

Syntax

string = rb.page.env.PathInfo(realReq)

Parameters

The 'env.PathInfo' method takes 1 parameter:

Name Type/Value Range/Length Description
realReqbool  Optional. Set to 'true' to retrieve information about the original request where this is an error page handler.

Results

The 'env.PathInfo' method returns string:

Type/Value Range/Length Description
string  

Remarks

This method returns the portion of the URL for the page requested beyond the resolved resource. For example if the client requests

http://www.whitebeam.org/test.rhtm/field1/field2

this method would return /field1/field2.

Modified behaviour from Whitebeam 0.9.19 onwards

By 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.

Whitebeam release 1.3.36
(loadtime : 58ms)