Skip to main content
Inspiring
April 19, 2006
Answered

Application.cfc not executing

  • April 19, 2006
  • 7 replies
  • 617 views
I have the attached code in my Application.cfc. But when I try to open my index.cfm to test my header and footer I get the following error:

Element COMPANYNAME is undefined in REQUEST.


My index.cfm contains the following code:

<cfoutput>
Hello!!!! Welcome to #REQUEST.companyName#
</cfoutput>


What am I missing?

Thanks in advance.
This topic has been closed for replies.
Correct answer Abdlah
Application.cfc wasn't introduced until Coldfusion 7.
Thank you for the information, this solves my puzzle.

7 replies

Inspiring
April 19, 2006
Abdlah wrote:
> I have the attached code in my Application.cfc. But when I try to open my
> index.cfm to test my header and footer I get the following error:
>
> Element COMPANYNAME is undefined in REQUEST.

Do you maybe have multiple Application.cfc files coming into play? I
just cut and paste your code, removed the references to the includes
since I don't have those, and it worked fine for me.

Matt

--
Matt Woodward
mpwoodward@gmail.com
Adobe Community Expert - ColdFusion
AbdlahAuthor
Inspiring
April 19, 2006
Actually, I only have one Application.cfc, so there is no possibility of conflict. I wonder if it is a server issue.
Participating Frequently
April 19, 2006
What version of Coldfusion is the server running?