Search code examples
coldfusioncoldfusion-9

ColdFusion - Capture Last Parameter


From my understanding #CGI.PATH_INFO# will grab my url path. But in my application I only want to grab the last parameter in my urls. So say I have the following urls:

How can I grab the htm, doc, and xls from the url?


Solution

  • You can use the ListLast function

    ListLast(cgi.query_string,'&')