| '''Example'''
|For the example given in the introduction, this method would return <code>foo://example.com:8042/over/there?name=ferret</code>.<br/>
|}
==request:context-path==
{{Mark|Introduced with Version 7.8:}}
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|request:context-path||xs:string}}
|-
| '''Summary'''
|Returns the context of the request. For servlets in the default (root) context, this method returns an empty string.
|}
=Changelog=
;Version 7.8
* Added: [[#request:context-path|request:context-path]]
;Version 7.7