Newer Version Available
$CurrentPage
A global merge field type to
use when referencing the current Visualforce page or
page request.
Usage
Use this global variable in a Visualforce page to reference the current page name ($CurrentPage.Name) or the URL of the current page ($CurrentPage.URL). Use $CurrentPage.parameters.parameterName to reference page request parameters and values, where parameterName is the request parameter being referenced. parameterName is case sensitive.
Example
1<apex:page standardController="Account">
2 <apex:pageBlock title="Hello {!$User.FirstName}!">
3 You belong to the {!account.name} account.<br/>
4 You're also a nice person.
5 </apex:pageBlock>
6 <apex:detail subject="{!account}" relatedList="false"/>
7 <apex:relatedList list="OpenActivities"
8 subject="{!$CurrentPage.parameters.relatedId}"/>
9</apex:page>