coldfusion

ColdFusion 11: Changing Application “this” Scope metadata from different functions in extended Application.cfc

北慕城南 提交于 2019-12-14 03:53:26
问题 I have a general understanding of the ColdFusion Application Workflow. But some parts remain unclear to me. The general workflow is as follows... Public Application Settings are set (I.E this.name, this.mappings ext.) onApplicationStart onSessionStart onRequestStart I have a sub-directory with an Application.cfc that extends a root Application.cfc that exists at the web-root After reading tons of blogs that describe this design pattern.... ColdFusion Application-Specific Mappings Work With

Encrypt and Decrypt data using Blowfish/CBC/PKCS5Padding

三世轮回 提交于 2019-12-14 03:48:52
问题 A legacy application (ColdFusion) is using Blowfish/CBC/PKCS5Padding encryption. How can we encrypt and decrypt this data using the BouncyCastle lib? For other fields, encrypted in ColdFusion using this: encrypt( data, key, 'BLOWFISH', 'HEX') We use this code BlowfishEngine engine = new BlowfishEngine(); PaddedBufferedBlockCipher cipher = new PaddedBufferedBlockCipher(engine); cipher.Init(false, new KeyParameter(Convert.FromBase64String(keyString))); byte[] out1 = Hex.Decode(name); byte[]

Why did the designers of ColdFusion decide to index arrays from 1 rather than 0?

微笑、不失礼 提交于 2019-12-14 03:45:02
问题 I'm just curious about this really, does anyone know why they broke convention on this one? Thanks, Ciaran 回答1: @Cory: You'd be surprised to know who lurking on StackOverflow. :-) You are very much right. The original design of CFML was to allow non-programmers to build complex web applications. ColdFusion\CFML was the first language designed specifically for building web applications. Back in 1995 the web was mostly static HTML and your typical 'web developer' wasn't doing too much

Must one use an MVC FrameW to produce clean URL's?

大兔子大兔子 提交于 2019-12-14 03:44:29
问题 The host that I want to host with does not support server side url rewriting, thus no third party tools can be installed to rewrite the url's. This is Coldfusion 8, on windows, IIS. The other alternative that I know of is to use a framework, but I do not feel like taking that route (time), for the application works well as it is (but the URL). Can clean urls be generated by purely CF? I do not need the clean url's for seo, rather it will be for the user's easy reference to their page. E.g.

Coldfusion: Detecting if being run by the scheduler

别来无恙 提交于 2019-12-14 03:39:34
问题 Is there a way for a ColdFusion app to know whether it is being run from the scheduler vs. from a browser? Ideally, I'd like to set a Session flag, for instance "isScheduled" in Application.cfm to be used throughout the app. EDIT I ended up checking the user agent, and that it is being run locally (to improve security), and (since it is running in Application.cfm) that the page is in the folder which allows scheduling: Request.isScheduled = FindNoCase("CFSCHEDULE",CGI.HTTP_USER_AGENT) and

If Else query is empty

不想你离开。 提交于 2019-12-14 03:22:29
问题 I am using CFLDAP to have users get authenticated using active directory. I am trying to write an if statement in case the users information does not come back as authenticated. I thought I could check by using <cfif AuthenticateUser.RecordCount gt 0> which is working as long as the information is correct but if the wrong information is entered and nothing is authenticated it is not running the else statement. Any help with this would be greatly appreciated! <cfldap action="query" name=

Webserver not working on OSX Mavericks

强颜欢笑 提交于 2019-12-14 02:24:04
问题 I was running a webserver and also Coldfusion just fine until I upgraded to Mountain Lion, then it stopped working. I got it working again by turning everything back on that the upgrade disabled, but now I have upgraded to Mavericks nothing is working. I have followed all the steps in various web articles but it won't work. PHP is enabled, everything that was enabled before is set up, including virtual hosts, and all the folders are in the same place. I get the error: Firefox can't establish

comma in array element breaks spreadsheet

两盒软妹~` 提交于 2019-12-14 02:16:41
问题 When adding data to an array, one of the elements has commas in its value. An example of the value is "Trim marks at 103, 96, and 90". Using the following code to add the array elements to the spreadsheet object, the partdescription element, as described above, has its data span multiple columns in the spreadsheet. It is handled as separate elements and not one. <!---Create file name variable---> <cfset filenametouse = 'PartLevel_Report' /> <!---Set directory and full file path---> <cfset

Populating SELECT with large JSON data set via ColdFusion (Lucee) very slow

北慕城南 提交于 2019-12-14 02:14:26
问题 Please forgive me if I have provided more information than required for this question. :D I am building an application that pulls large JSON data-sets from a remote machine. However, I am working within a secure environment that separates application servers with firewalls, etc. Because of this I have had to do a bit of fudging (using SSH) to get the data I need. I have requested additional ports to be opened so I could bypass using SSH but was denied. Here is the physical path to get my data

Parsing log files in a folder in ColdFusion

只谈情不闲聊 提交于 2019-12-14 01:28:38
问题 The problem is there is a folder ./log/ containing the files like: jan2010.xml, feb2010.xml, mar2010.xml, jan2009.xml, feb2009.xml, mar2009.xml ... each xml file would like: <root><record name="bob" spend="20"></record>...(more records)</root> I want to write a piece of ColdFusion code ( log.cfm ) that simply parsing those xml files. For the front end I would let user to choose a year, then the click submit button. All the content in that year will be show up in separate table by month. Each