• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 230
  • Last Modified:

get url dir without the template

I want to get the url path.
I'm using getPageContext().getRequest().getRequestURI()

but I don't want the coldfusion template at the end.
 
thanks
0
ecpeel
Asked:
ecpeel
1 Solution
 
_agx_Commented:
Use GetDirectoryFromPath()

<cfset fullPath = getPageContext().getRequest().getRequestURI()>
<cfset pathWithoutFileName = GetDirectoryFromPath(fullPath) />

0
 
ecpeelAuthor Commented:
oh... thanks _agx!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now