Application.cfm AND Application.cfc not working in similar manner.

I am working on the ColdfusionMX7 and Application.cfm is not working properly, I defined application variable and tried to output it on cfm page its giving me error

Element PAGENAME is undefined in APPLICATION.

My Application.cfm look like

<cfapplication name=”TestApp1″ clientManagement=”yes” sessionmanagement=”yes”>
<cfset Application.pageName=”foo”>
</cfapplication>

Where as Application.cfc is working well, its look like

<cfcomponent displayname=””>
<cfset this.name=”testApp1″>
<cffunction name=”onapplicationStart” returntype=”boolean” output=”false”>
<cfset Application.pageName=”Application Inside page”>
<cfreturn true>
</cffunction>
</cfcomponent>

What difference in between them? Any ideas

Advertisements

2 Responses to Application.cfm AND Application.cfc not working in similar manner.

  1. Vinod says:

    I am also looking for the difference……………………….

  2. Santosh Vasanth says:

    Can any of you please mail me About

    1) The differnce between Application.cfm and Application.cfc .
    2) Where Application.cfc should be placed?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: