Can not get URL using GetPageContext().getRequest().getRequestURI()

Hi guys,
I am coding a web application using ColdFusion 8.
The situation is as follow:
- I type https://mypage.com/aaa/bbb.html on web browser where aaa and bbb.html does not exist in my web folder.
- And this will drive the error 404 PageNotFound occurred, in the code that processing error 404, I tried to get URL aaa/bbb.html by using GetPageContext().getRequest().getRequestURI() but the result of this command is my created 404 error page.
- I also tried to get URL by using CGI, but also couldn't get it.
Can you guys show me the way to get URL when no page is found error occurred?
Thank you very much in advanced!

No screen wrote:
- I type https://mypage.com/aaa/bbb.html on web browser where aaa and bbb.html does not exist in my web folder.
- And this will drive the error 404 PageNotFound occurred, in the code that processing error 404, I tried to get URL aaa/bbb.html by using GetPageContext().getRequest().getRequestURI() but the result of this command is my created 404 error page.
ColdFusion will know nothing of https://mypage.com/aaa/bbb.html! As the requested page is HTML, the web server will respond to it, without involving ColdFusion. The ColdFusion function GetPageContext() is therefore irrelevant.

Similar Messages

Maybe you are looking for

  • Is there a way to reinstall Windows without all of HP's preinstalled software?

    I have a HP Pavilion dv6-1334us notebook, installed with Windows 7 64-bit. I'm very familiar with the recovery process, DVDs and all, but I've recently read this article on Lifehacker: http://lifehacker.com/5832896/download-windows7-isos-to-reinstall

  • Page number, in a table, in footer

    Hello, I'm having an issue which I think might be a legitimate bug. Here's the probem: • I'm adding the dynamic "page number", into a table, that resides within the footer. • When the page number reaches double digits (10, 11, etc), the number displa

  • Dynamic calc on a scenario member

    I'm trying to create a dynamic calc for a scenario to calculate the variance between one scenario from another. When I run a report, I keep getting this err msg: Error executing query: CBS-SNI-BP-DB/Sni_prod/Consol/planning/Error(1200400) Error execu

  • How do YOU backuo your project files?

    I am making my first iPhone game with Cocos2d. Its A LOT more work than my web browser app. I really don't want to lose my work and have to start again. So I was wondering how people on this forum backup their project files. I'm on a MacBook so I can

  • Service Account

    Guys, I have an issue with NTP and found how to resolve it: http://www.cisco.com/univercd/cc/td/doc/product/iaabu/csids/csids10/hwguide/hwts.htm#wp36468 Step 1 is "Log in to the service account" but how to do that? Thx Stephane