Re: application.cfc

2009-11-23 Thread Dominic Watson
A quick and clean way is to create a cfc named 'utils', 'udfs' or 'helpers' or somesuch. In that, place your MyDecimalFormat function, along with any other udfs you may have. Then, in application.cfc: cffunction name=onApplicationStart cfset application.udfs = CreateObject('component

Re: application.cfc

2009-11-23 Thread Tony Bentley
yep. Exactly how I do it. application.cfc = createObject(component,cfc); application.cfc.MyDecimalFormat('1234567'); ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion

RE: application.cfc

2009-11-23 Thread Chad Gray
Ah.. makes sense! I should have thought of that. Thanks! Chad -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Monday, November 23, 2009 5:12 PM To: cf-talk Subject: Re: application.cfc A quick and clean way is to create a cfc named 'utils', 'udfs

cflock within Application.cfc?

2009-10-19 Thread Andrew Clarke
Hi. I've used code like this vastly simplified Application.cfc example for a couple years now, in CF7 and CF8: cfcomponent cfscript this.name = My Application; this.sessionManagement = true; /cfscript cflock timeout=5 type=exclusive scope=sessioncfset session.x = y //cflock /cfcomponent I

Re: cflock within Application.cfc?

2009-10-19 Thread s. isaac dealey
Hey Andrew, that sounds like a real tough problem... probably one of those issues that will seem simple in hindsight. :) You covered all the bases that spring to mind for me immediately. But I didn't see what error message you're getting from the code. I think you just said it's failing. Maybe

Re: cflock within Application.cfc?

2009-10-19 Thread Andrew Clarke
Thanks, I meant to post the actual error but I guess I forgot. Here it is: Cannot lock SESSION scope. Cannot use cflock to lock the application or session shared scopes without these scopes being established through the use of the cfapplication tag. To use the session scope you need to enable

Re: cflock within Application.cfc?

2009-10-19 Thread s. isaac dealey
be enabled in the ColdFusion Administrator. Hmmm... well that's strange... My first instinct is to say that you've somehow accidentally attempted to lock the session scope inside of the onApplicationStart() method or possibly in the soft-constructor of the Application.cfc (which is how it appeared

application.cfc for security

2009-10-09 Thread Robert Harrison
I have a situation where is a user is creating subdirectories in a directory that I know. He's also uploading files via FTP. I know the name of the root directory, but don't necessarily know the name of the subdirectories and files. Is there any way I can put an application.cfc in the root

RE: application.cfc for security

2009-10-09 Thread brad
session scope, but rather would be a separate list of user names and passwords you could administer to control how could access that directory. ~Brad Original Message Subject: application.cfc for security From: Robert Harrison rob...@austin-williams.com Date: Fri, October 09, 2009 1

Re: application.cfc for security

2009-10-09 Thread Agha Mehdi
also uploading files via FTP. I know the name of the root directory, but don't necessarily know the name of the subdirectories and files. Is there any way I can put an application.cfc in the root directory so it would do a redirect on anyone who does not have the right credentials (e.g

RE: application.cfc for security

2009-10-09 Thread Robert Harrison
: application.cfc for security Not if the files being uploaded are things like images, or text files. Requests for those file types aren't routed through ColdFusion. Instead the webserver hands the files directly back to the user. Options: 1) Store the files outside of the webroot and only allow

Re: application.cfc for security

2009-10-09 Thread Charles Sheehan-Miles
, October 09, 2009 2:45 PM To: cf-talk Subject: RE: application.cfc for security Not if the files being uploaded are things like images, or text files. Requests for those file types aren't routed through ColdFusion. Instead the webserver hands the files directly back to the user. Options: 1

Issue converting to Application.cfc from Application.cfm having UDF's

2009-09-23 Thread SANJEEV SINGLA
I need help in converting application.cfm to application.cfc. I have few functions defined in my current application.cfm, out of which few are called within application.cfm only. One of the function I have in my application.cfm is like as below: cffunction name=loadAppCFC access=public

Re: Issue converting to Application.cfc from Application.cfm having UDF's

2009-09-23 Thread Cutter (ColdFusion)
Why don't you just but your UDF's in your Application.cfc directly? Then those functions are automatically available from anywhere within your Application.cfc. Otherwise, I would put those functions within a utility cfc, which you could place in an APPLICATION scoped variable inside your

Anyone have issues with application.cfc on BlueDragon.NET after 7.1.0.382 update?

2009-09-11 Thread Casey Dougall
I can't even use a blank application.cfc after our 7.1.0.382 update lastnight... I didn't perform the update myself but now my site is broken. Nothing changed in the website itself which is the odd part. Jsut throws iis errors I can't even get a cfml error out of this thing. This is a 2003 IIS6

Resolved - Re: Anyone have issues with application.cfc on BlueDragon.NET after 7.1.0.382 update?

2009-09-11 Thread Casey Dougall
On Fri, Sep 11, 2009 at 1:16 PM, Casey Dougall ca...@uberwebsitesolutions.com wrote: Server Error in '/' Application. -- *Object reference not set to an instance of an object* I don't know WHY but cfcomponent tag was missing in Application.cfc but once I put

Application.cfm to Application.cfc migration (Problems with Functions in Application.cfc)

2009-08-26 Thread SANJEEV SINGLA
to be loaded for each page. While migrating to application.cfc I took all the functions from Application.cfm and put it in one file. Then I inluded the following event. cffunction name=onRequest cfargument name=targetPage type=String required=true/ cfinclude template=all_udf.cfm cfinclude template

Re: Application.cfm to Application.cfc migration (Problems with Functions in Application.cfc)

2009-08-26 Thread Cutter (ColdFusion)
in Application.cfm (as above example.) Noe the comUDF is again a cfc which has many user defined functions which are required on every page. The other methods defined directly in Application.cfm are also required to be loaded for each page. While migrating to application.cfc I took all

Re: Converted Application.cfm to Application.cfc and Having Problems

2009-06-22 Thread Jochem van Dieten
On Fri, Jun 19, 2009 at 4:23 AM, Dawson, Michael wrote: The weird thing is that it works the majority of the time, but, man, the performance certainly sucks, not to mention the intermittent I can't find the custom tag errors. I have on occasion noticed performance degradation with the use

RE: Converted Application.cfm to Application.cfc and Having Problems

2009-06-19 Thread Dawson, Michael
I was thinking about what you wrote... If that were true, there would have to be another Application.cfc/.cfm file in the directory tree, right? You can't just put cfset this.name = NewApp in any ol' .cfm file, can you? Thanks, Mike -Original Message- From: Michael Dinowitz

Converted Application.cfm to Application.cfc and Having Problems

2009-06-18 Thread Dawson, Michael
that, even though I was using per-app mappings/paths on the new site, it was still using the global CF mappings/paths. So, this afternoon, I converted the Application.cfm file to Application.cfc. The code doesn't do much other than set a session variable with the result from a CF component

RE: Converted Application.cfm to Application.cfc and Having Problems

2009-06-18 Thread Dawson, Michael
BTW, this is all I have in the Application.cfc at this moment. cfcomponent output=false cfset this.name = AceLink cfset this.customTagPaths = D:\Inetpub\AceLink\custtags,D:\Inetpub\AceLink cfset this.mappings[/] = D:\Inetpub\AceLink cfset this.sessionManagement = true cfset

RE: Converted Application.cfm to Application.cfc and Having Problems

2009-06-18 Thread Dawson, Michael
on where to start looking for bottlenecks, I'm gonna start dissecting the site tomorrow. Thanks, Mike -Original Message- From: Dawson, Michael [mailto:m...@evansville.edu] Sent: Thursday, June 18, 2009 2:31 PM To: cf-talk Subject: RE: Converted Application.cfm to Application.cfc and Having

Re: Converted Application.cfm to Application.cfc and Having Problems

2009-06-18 Thread Michael Dinowitz
, it was still using the global CF mappings/paths. So, this afternoon, I converted the Application.cfm file to Application.cfc.  The code doesn't do much other than set a session variable with the result from a CF component. The first thing I noticed was that each page request took several seconds

RE: Converted Application.cfm to Application.cfc and Having Problems

2009-06-18 Thread Dawson, Michael
Yes, the per-app setting is enabled and I have specified my mappings and custom tag paths in the application.cfc file. The weird thing is that it works the majority of the time, but, man, the performance certainly sucks, not to mention the intermittent I can't find the custom tag errors. I

Re: Converted Application.cfm to Application.cfc and Having Problems

2009-06-18 Thread Michael Dinowitz
Maybe those per app settings are being overwritten in some other part of the app. On Thu, Jun 18, 2009 at 10:23 PM, Dawson, Michael m...@evansville.eduwrote: Yes, the per-app setting is enabled and I have specified my mappings and custom tag paths in the application.cfc file. The weird

Redirect in Application.cfc Pseudo Contructor Area: Bad Form?

2009-06-17 Thread Dawson, Michael
One of the first things I want to do, on each request, is to ensure that each request/response is secured. Therefore, if cgi.https is off, I will redirect the browser to the secured location. My plan was to put this code in the pseudo-constructor area (not in any particular function body):

re: Redirect in Application.cfc Pseudo Contructor Area: Bad Form?

2009-06-17 Thread Jason Fisher
Yes, on one of my shopping apps, I put the following right in my onRequestStart method: cfif cgi.https is off !--- redirect to secure connection --- cfset go = https://; cgi.server_name cgi.path_info / cfif len(cgi.query_string) cfset go = go ?

Re: Redirect in Application.cfc Pseudo Contructor Area: Bad Form?

2009-06-17 Thread Cutter (CFRelated)
Being that the https is required on every request, having this at the top of your constructor makes sense, to prevent processing of the other functions should the request be unsecure. I would put the check and redirect in a custom function, and call the function in the beginning of your

RE: Redirect in Application.cfc Pseudo Contructor Area: Bad Form?

2009-06-17 Thread Dawson, Michael
This is great advice. Thank you, gentlemen. Mike -Original Message- From: Cutter (CFRelated) [mailto:cold.fus...@cutterscrossing.com] Sent: Wednesday, June 17, 2009 10:20 AM To: cf-talk Subject: Re: Redirect in Application.cfc Pseudo Contructor Area: Bad Form? Being that the https

application.cfc

2009-04-20 Thread Chad Gray
Is it safe to put this code in the onError function? FORM Variablesbr / cfif isdefined(FORM.FieldNames)cfdump var=#FORM#/cfif SESSION Variablesbr cfif isdefined(session)cfdump var=#session#/cfif ~| Adobe® ColdFusion® 8

Re: application.cfc

2009-04-20 Thread Ras Tafari
id put it in an email rather than displaying, that way you knnow someone who isnt supps to see it is seeing it. but thats just me. On Mon, Apr 20, 2009 at 12:56 PM, Chad Gray cg...@careyweb.com wrote: Is it safe to put this code in the onError function? FORM Variablesbr / cfif

application.cfc subdirectories and links

2009-04-17 Thread Elizabeth Meyer
I have used the Application.cfc onRequestStart and onRequestEnd for the layout of my site, i.e. common header, mainnavigation and footer on all pages. Now the problem comes in where I have some files in a subdirectory: (The application.cfc is only in the root directory) the main navigation

Re: application.cfc subdirectories and links

2009-04-17 Thread Ben Nadel
Liz, This is not a great solution, but you could put a dynamic Base tag in the head: Main directory: base href=./ / Sub directory: base href=../ / I think that would work as a stop-gap. -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York

Re: application.cfc subdirectories and links

2009-04-17 Thread Peter Boughton
Create a mapping to the siteroot, and do cfinclude template=/siterootmapping/afile.cfm/ ? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: application.cfc subdirectories and links

2009-04-17 Thread Adrian Moreno
application roor, i.e. cfset application.siteRoot = /. Then all of your links will look like [a href=#application.siteRoot#/aboutUs.cfm]About Us[/a} If your site root changes, just update the application variable. HTH, Adrian I have used the Application.cfc onRequestStart and onRequestEnd

Re: Per-application custom tag paths ( Application.cfc )

2009-04-07 Thread Peter Boughton
Definitely seems to be plural (which makes sense; it's a list of multiple paths). To give another working example, I've ripped the top six lines from the Application.cfc for a Railo app I'm writing: cfcomponent output=false cfset This.Name = {application_name} / cfset

Re: Per-application custom tag paths ( Application.cfc )

2009-04-07 Thread David McGuigan
). To give another working example, I've ripped the top six lines from the Application.cfc for a Railo app I'm writing: cfcomponent output=false cfset This.Name = {application_name} / cfset This.CustomTagPaths = /tags / cffunction name=onApplicationStart output=false

Per-application custom tag paths ( Application.cfc )

2009-04-06 Thread David McGuigan
Ben Forta was like, Yo, this.customtagpaths / listAppend( this.customtagpaths, newPath ). http://www.forta.com/blog/index.cfm/2007/4/24 But then the Adobe documentation's all like, this.customtagpath ( singular ) http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=AppEvents_01.html

Re: Per-application custom tag paths ( Application.cfc )

2009-04-06 Thread Ben Nadel
This is how I does it (in Application.CFC): !--- Store the root path to application. --- cfset THIS.RootPath = GetDirectoryFromPath( GetCurrentTemplatePath() ) / !--- Build up an array of custom tag paths. --- cfset THIS.CustomTagPathsArray = [ (THIS.RootPath tags

Missing Template Handler and Application.cfc

2009-03-26 Thread Ian Skinner
I take it that a CFML template defined to be used as a missing template hander does not process Application.cfc as a normal template does. Does anybody no the scoop about this? ~| Adobe® ColdFusion® 8 software 8 is the most

Re: Missing Template Handler and Application.cfc

2009-03-26 Thread Charlie Griefer
On Thu, Mar 26, 2009 at 10:31 AM, Ian Skinner h...@ilsweb.com wrote: I take it that a CFML template defined to be used as a missing template hander does not process Application.cfc as a normal template does. Does anybody no the scoop about this? Well, according to the docs, you're

Re: Missing Template Handler and Application.cfc

2009-03-26 Thread Ian Skinner
Charlie Griefer wrote: On Thu, Mar 26, 2009 at 10:31 AM, Ian Skinner h...@ilsweb.com wrote: I take it that a CFML template defined to be used as a missing template hander does not process Application.cfc as a normal template does. Does anybody no the scoop about this? Well

Re: Application.cfc error

2009-01-23 Thread cf coder
Hi Laura, I'm getting this same error. Did you manage to fix this error? Do you remember what the problem was and if so can you kindly share it with me? Regards, John I'm getting an odd error when I try to use Application.cfc instead of Application.cfm. I get the following error: 500

Extending application.cfc

2009-01-04 Thread jonese
Hey all. I have been extending an Application.cfc from my root in a sub directory using mappings. I recently implemented THIS.mappings and it doesn't appear that the mapping for the extended Application.cfc is working. can anyone test this and confirm deny it? Thanks in advance

Re: Extending application.cfc

2009-01-04 Thread s. isaac dealey
Hey all. I have been extending an Application.cfc from my root in a sub directory using mappings. I recently implemented THIS.mappings and it doesn't appear that the mapping for the extended Application.cfc is working. can anyone test this and confirm deny it? You can't. Mappings created

Re: Extending application.cfc

2009-01-04 Thread s. isaac dealey
And then in your subdirectory/Application.cfc use extends=appcfcproxy.cfc Or rather extends=appcfcproxy... oops! -- s. isaac dealey ^ new epoch isn't it time for a change? ph: 781.769.0723 http://onTap.riaforge.org/blog

How do I create multiple mappings in application.cfc?

2008-12-20 Thread Rick Faircloth
I see how to create one, but I can't find a concrete example of how to create multiple mappings: cfset login = structNew()/ cfset login[/login] = e:\inetpub\webroot\fortstewart-sm\login/ cfset this.mappings = login/ Now, how do I go about create another mapping for

Re: How do I create multiple mappings in application.cfc?

2008-12-20 Thread Dave Watts
I see how to create one, but I can't find a concrete example of how to create multiple mappings: cfset login = structNew()/ cfset login[/login] = e:\inetpub\webroot\fortstewart-sm\login/ cfset this.mappings = login/ Now, how do I go about create another

RE: How do I create multiple mappings in application.cfc?

2008-12-20 Thread Rick Faircloth
Nevermind...I found the structInsert example in the Adobe docs... Rick -Original Message- From: Rick Faircloth [mailto:r...@whitestonemedia.com] Sent: Saturday, December 20, 2008 12:27 PM To: cf-talk Subject: How do I create multiple mappings in application.cfc? I see how

Re: How do I create multiple mappings in application.cfc?

2008-12-20 Thread Dave Watts
I see how to create one, but I can't find a concrete example of how to create multiple mappings: cfset login = structNew()/ cfset login[/login] = e:\inetpub\webroot\fortstewart-sm\login/ cfset this.mappings = login/ Now, how do I go about create another

RE: How do I create multiple mappings in application.cfc?

2008-12-20 Thread Rick Faircloth
Thanks for the info, Dave... I'm finally making the transition away from application.cfm to application.cfc... Rick -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Saturday, December 20, 2008 1:35 PM To: cf-talk Subject: Re: How do I create multiple mappings

RE: Application.cfc - normal request or web service?

2008-12-01 Thread Hugo Ahlenius
|On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: | Is there any way that the processing (e.g. OnRequestStart) |can know about the request to figure out if it is a web |service call (calling a component as a web service) or a |normal/plain .cfm request? I guess one can always parse this

Re: Application.cfc - normal request or web service?

2008-12-01 Thread Azadi Saryev
because http:/host/testobject.cfc?method=testfunction request is NOT invoking a web service. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Hugo Ahlenius wrote: |On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: | Is there any way that the processing (e.g. OnRequestStart) |can

Application.cfc - normal request or web service?

2008-11-28 Thread Hugo Ahlenius
Hi, Is there any way that the processing (e.g. OnRequestStart) can know about the request to figure out if it is a web service call (calling a component as a web service) or a normal/plain .cfm request? I guess one can always parse this from the CGI path variables - just curious if anyone knew

Re: Application.cfc - normal request or web service?

2008-11-28 Thread Jochem van Dieten
On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: Is there any way that the processing (e.g. OnRequestStart) can know about the request to figure out if it is a web service call (calling a component as a web service) or a normal/plain .cfm request? I guess one can always parse this

Re: Application.cfc - normal request or web service?

2008-11-28 Thread Adam Haskell
This will only return true for web service calls to be clear there are other ways of calling a CFC via HTTP that this will return false, AMF for example (which Mark was just showing me last night this lovely example). Fusebox just looks at the extension in the target page in OnRequestStart:

Re: Application.cfc - normal request or web service?

2008-11-28 Thread s. isaac dealey
On Fri, Nov 28, 2008 at 10:59 AM, Hugo Ahlenius wrote: Is there any way that the processing (e.g. OnRequestStart) can know about the request to figure out if it is a web service call (calling a component as a web service) or a normal/plain .cfm request? I guess one can always parse this from

Re: Application.cfc question

2008-11-24 Thread Martijn van der Woud
Just curious: can anyone tell a bit more on how exactly Application.cfc is executed? With normal cfc's I believe that the code above the first method runs only when a new instance of the cfc is created, or when the cfc is invoked as a static component. It seems a bit strange to me

RE: Application.cfc question

2008-11-24 Thread Dawson, Michael
I don't know the exact, internal details, but application.cfc is called on each request and knows ONLY about the current request. Other than putting data into scopes such as application, sesssion or server, nothing is kept from one request to another, within application.cfc. In this respect

Re: Application.cfc question

2008-11-24 Thread James Holmes
A new instance of Application.cfc is created and used on each request, which is why the code above the first method runs each time. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/11/25 Martijn van der Woud [EMAIL PROTECTED]: Just curious: can anyone tell

Application.cfc question

2008-11-22 Thread Dave Phillips
Hi - I'm trying to use application.cfc on a new app I'm building and I'm having a strange occurrence. I'm sure it's just because I'm not as familiar with it as application.cfm, but I am trying to 'avoid' just switching back to application.cfm. Here's the issue: I have the following code

Re: Application.cfc question

2008-11-22 Thread Jochem van Dieten
On Sat, Nov 22, 2008 at 8:38 AM, Dave Phillips wrote: I have the following code. When I try to execute my URL with the reloadConfig=yes parameter, The app fails on the first line of the onSessionStart() function with 'application.datasource does not exist.' Since onSessionStart is called

Re: Application.cfc question

2008-11-22 Thread Nicholas Stein
I ran into the same problem. I assign datasource in the application.cfm and then lose the connection string in the cfc. I believe the problem is that a cfc is intended to run in a different machine as thought it were a web service. As a result Cold Fusion does not carry the application state

application.cfc error

2008-11-17 Thread Chad Gray
I don't understand what is happening. Anyone see something in my application.cfc that would cause this error? I can get rid of the error by reinitialing the application. I get this error every once in a while. It is like the application is not re-initialzing right and my application

Re: application.cfc error

2008-11-17 Thread Emmet McGovern
Are you sure your not clearing the cart outside of your application.cfc? -e On Mon, Nov 17, 2008 at 12:19 PM, Chad Gray [EMAIL PROTECTED] wrote: I don't understand what is happening. Anyone see something in my application.cfc that would cause this error? I can get rid of the error

RE: application.cfc error

2008-11-17 Thread Josh Nathanson
Could it be that the application is timing out? What sort of traffic does the site get? What is your application timeout set to? -- Josh -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 9:20 AM To: cf-talk Subject: application.cfc error I

Re: application.cfc error

2008-11-17 Thread Alan Rother
Off hand I'm not sure what is causing it, but this may help cfif (isdefined(URL.reinit)) OR (NOT IsDefined(Application.Cart)) OR (NOT IsDefined(Application.Page)) cfset onApplicationStart() / /cfif =] -- Alan Rother Adobe Certified

RE: application.cfc error

2008-11-17 Thread Chad Gray
Ya positive. There are only about 10 pages total in the web site. So I know for sure there is no code to kill the variable. -Original Message- From: Emmet McGovern [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 12:43 PM To: cf-talk Subject: Re: application.cfc error

RE: application.cfc error

2008-11-17 Thread Chad Gray
Traffic is minimal. We are just testing the site now. So it will sit for many days before getting another user. I would guess the default timeout on the application since I am not defining one in the application.cfc. 2 days in the administrator. Shouldn't the application start back up after

RE: application.cfc error

2008-11-17 Thread Chad Gray
Seems like kind of a hack eh'? It probably would work though. -Original Message- From: Alan Rother [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 1:20 PM To: cf-talk Subject: Re: application.cfc error Off hand I'm not sure what is causing it, but this may help

Re: application.cfc error

2008-11-17 Thread Alan Rother
Hey Chad, One more thing came to mind... Not knowing anything about your hosting setup this is a wild guess... But your Application scope could be getting corrupted by another site on the same server having the same Application name... cfset this.name = testSite As a practice, I try to make this

RE: application.cfc error

2008-11-17 Thread Chad Gray
Hmmm you know I did realize that there was another web site using the same application name. Could this cause my problems? -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2008 1:41 PM To: cf-talk Subject: RE: application.cfc error

RE: application.cfc error

2008-11-17 Thread Adrian Lynch
November 2008 18:41 To: cf-talk Subject: RE: application.cfc error Seems like kind of a hack eh'? It probably would work though. -Original Message- From: Alan Rother Sent: Monday, November 17, 2008 1:20 PM To: cf-talk Subject: Re: application.cfc error Off hand I'm not sure what

Re: application.cfc error

2008-11-17 Thread Alan Rother
Hmmm you know I did realize that there was another web site using the same application name. Could this cause my problems? YES -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org

RE: application.cfc error

2008-11-17 Thread Dawson, Michael
Use the following code to prevent issues with running multiple applications with the same name on a single server. this.name = constants.siteName { hash(getCurrentTemplatePath()) } (If I remembered where I first saw this, I would give proper credit.) Mike

RE: application.cfc error

2008-11-17 Thread Chad Gray
I bet this is the problem! I just looked at the other application.cfc on the web server and it is defining the same application name and only defining the first two application variables! cffunction name=onApplicationStart returnType=boolean output=false cfset application.dsn

Going from Application.cfm to Application.cfc

2008-11-17 Thread Gerald Guido
I have a couple of old apps and I want to start using Application.cfc. Here is the thing. The main app I want to convert has parts that dates back to CF 5 and has a LOT of stuff in Application.cfm: Queries, Logging, CFInclude's, all kinds of cfparams, stuff to load things into various scopes

Re: Going from Application.cfm to Application.cfc

2008-11-17 Thread Dan O'Keefe
Check this out and do a search on Ray's blog for application.cfc http://www.coldfusionjedi.com/index.cfm/2007/11/5/ApplicationCFC-Template-Update I think he even has a recorded preso he did once on using it. -- Dan O'Keefe On Mon, Nov 17, 2008 at 2:56 PM, Gerald Guido [EMAIL

application.cfc and session structure

2008-10-23 Thread Chad Gray
What is the safest way to dump the session variables in the onError function of Application.cfc? Thanks Chad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http

Re: application.cfc and session structure

2008-10-23 Thread Mike Chabot
: What is the safest way to dump the session variables in the onError function of Application.cfc? Thanks Chad ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http

RE: application.cfc and session structure

2008-10-23 Thread Chad Gray
To: cf-talk Subject: Re: application.cfc and session structure If you are referring to something that will run in production as opposed to some limited debugging in a development environment, then I prefer dumping the error details to a database table or inside of an email. -Mike Chabot

Re: application.cfc and session structure

2008-10-23 Thread Mike Chabot
an error in my error function is what I am getting at. Chad -Original Message- From: Mike Chabot [mailto:[EMAIL PROTECTED] Sent: Thursday, October 23, 2008 9:50 AM To: cf-talk Subject: Re: application.cfc and session structure If you are referring to something that will run

ses and application.cfc

2008-09-04 Thread Chad Gray
I found this script on Ray Camden's blog for doing SES but it wont work if placed in Application.cfc. How should I use this script when using Application.cfc? I really don't want to put it on the top of each page. I would prefer to use it in the Application.cfc file. cfscript function

Re: ses and application.cfc

2008-09-04 Thread Tom Chiverton
On Thursday 04 Sep 2008, Chad Gray wrote: How should I use this script when using Application.cfc? onRequestStart() -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership

RE: ses and application.cfc

2008-09-04 Thread Chad Gray
- From: Tom Chiverton [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2008 10:00 AM To: CF-Talk Subject: Re: ses and application.cfc On Thursday 04 Sep 2008, Chad Gray wrote: How should I use this script when using Application.cfc? onRequestStart() -- Tom Chiverton

RE: ses and application.cfc

2008-09-04 Thread Adrian Lynch
Try onRequest instead. Adrian -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: 04 September 2008 15:06 To: CF-Talk Subject: RE: ses and application.cfc If I put that code in onRequestStart I get this error. I think it is because I am creating a function inside

RE: ses and application.cfc

2008-09-04 Thread Adrian Lynch
Oh and if that doesn't work, put it in a file and include it instead. Adrian -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 04 September 2008 15:15 To: CF-Talk Subject: RE: ses and application.cfc Try onRequest instead. Adrian -Original Message- From

Re: ses and application.cfc

2008-09-04 Thread Raymond Camden
use it in Application.cfc. On Thu, Sep 4, 2008 at 9:06 AM, Chad Gray [EMAIL PROTECTED] wrote: If I put that code in onRequestStart I get this error. I think it is because I am creating a function inside of a function. Unable to complete CFML to Java translation. Error information unsupported

Application.cfc error

2008-08-27 Thread Laura Norris
I'm getting an odd error when I try to use Application.cfc instead of Application.cfm. I get the following error: 500 ROOT CAUSE: java.lang.NoClassDefFoundError: Could not initialize class coldfusion.xml.rpc.CFCServlet at coldfusion.cfc.CFCProxy.init(CFCProxy.java:71

Re: Setting base url in application.cfc

2008-08-18 Thread John P
Thank you both for your suggestions, this was helpful in understanding the scopes of application.cfc. John Try setting application.urlBase in the OnApplicationStart section, unless you really want this to be in the variables scope. -Mike Chabot

Setting base url in application.cfc

2008-08-15 Thread John P
Hi, I'm interested in setting a base url in my application.cfc which I will be able to reference from all .cfm pages. I've tried it in onReqestStart and onApplicationStart and it doesn't seem to be working, I get a variable base is undefined error. cffunction name=onRequestStart

Re: Setting base url in application.cfc

2008-08-15 Thread Barney Boisvert
in setting a base url in my application.cfc which I will be able to reference from all .cfm pages. I've tried it in onReqestStart and onApplicationStart and it doesn't seem to be working, I get a variable base is undefined error. cffunction name=onRequestStart returnType=void cfset base

Re: Setting base url in application.cfc

2008-08-15 Thread Mike Chabot
on use. From onRequestStart, you can set into the request, session, application, and server scopes. cheers, barneyb On Fri, Aug 15, 2008 at 3:51 PM, John P [EMAIL PROTECTED] wrote: Hi, I'm interested in setting a base url in my application.cfc which I will be able to reference from all

Application.cfc OnSessionEnd

2008-08-14 Thread Paul Giesenhagen
Can you call other components within the OnSessionEnd? If I call a query directly in the OnSessionEnd function it works fine .. but if I put that query into a component and call the component, it doesn't work. Any ideas? ~|

RE: Application.cfc OnSessionEnd

2008-08-14 Thread Paul Giesenhagen
Scratch that question .. we found a small problem in the code .. it does run the components. Thought it should. -Original Message- From: Paul Giesenhagen [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2008 10:30 AM To: CF-Talk Subject: Application.cfc OnSessionEnd Can you call

Problems with switching from application.cfm to application.cfc

2008-07-21 Thread Richard Steele
We are now using CF8 and want to take advantage of features in application.cfc. In particular we want to take advantage of the missing template handler of CF8 application.cfc. However, in our current application.cfm file we had defined 20 or so variables that were not scoped (eg. xcachepath

RE: Problems with switching from application.cfm to application.cfc

2008-07-21 Thread Adrian Lynch
What happens if you create those unscoped vars in onRequest? Adrian -Original Message- From: Richard Steele [mailto:[EMAIL PROTECTED] Sent: 21 July 2008 16:44 To: CF-Talk Subject: Problems with switching from application.cfm to application.cfc We are now using CF8 and want to take

Re: Problems with switching from application.cfm to application.cfc

2008-07-21 Thread Richard Steele
It's as if they don't exist. Variable not found errors abound. What happens if you create those unscoped vars in onRequest? Adrian We are now using CF8 and want to take advantage of features in application.cfc. In particular we want to take advantage of the missing template handler of CF8

Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Nobody? What's this? First y'all tell me to install Apache, just like you did, but when I ask for an example config file, nobody has one? Come on, help a guy out here... Thanks On Mon, Jun 16, 2008 at 9:26 PM, Didgiman [EMAIL PROTECTED] wrote: Ok, ok, you all convinced me. I went along and

<    1   2   3   4   5   6   7   8   >