coldfusion

ColdFusion using Javaloader error

笑着哭i 提交于 2019-12-25 05:18:07
问题 I have a question regarding calling java class from ColdFusion using Javaloader 1.1. I attempted to access java class from ColdFusion in a local server, and there was no problem. But when I tried the same thing in office server, I got an error: "the specified directory mypath\Javaloader/tmp/AEFACE9B-1C6F-6569-2329 could not be created. The most Likely cause of this error that mypath \ / tmp/AEFACE9B-1C6F-6569-2329 already exists on your file system." And another message "The error occured in

Iteration through url request collection variables by dynamic evaluation

我与影子孤独终老i 提交于 2019-12-25 04:14:33
问题 What i am trying todo in coldfusion cfscript is iterate through a request collection of variables and do some evaluation, which i can do easily in PHP, but am running into issue translating to coldfusion cfscript, because it seems i cannot build a dynamic if statement PHP for ( $i=0 ; $i<count($aColumns) ; $i++ ) { if ( $_GET['bSearchable_'.$i] == "true" && $_GET['sSearch_'.$i] != '' ) { //If there was no where clause if ( $sWhere == "" ) { $sWhere = "WHERE "; } else { $sWhere .= " AND "; } I

SUM function - NULL problem

佐手、 提交于 2019-12-25 03:55:15
问题 I have a problem regarding to a SUM function in sql that gives NULLs, thus brakes all the structure of the table: (x-month,y-cities,value-Nettotal) but i get wrongly arranged values according to a y-cities, because there are no free spaces, i mean 0 values, here is the screenshot to make it more clear: and the link to a question i asked before but couldnt get a clear answer: group by cities So what I and Dave DuPlantis have wrote so far is: the query: <cfquery name="GET_SALES_TOTAL"

SUM function - NULL problem

核能气质少年 提交于 2019-12-25 03:55:13
问题 I have a problem regarding to a SUM function in sql that gives NULLs, thus brakes all the structure of the table: (x-month,y-cities,value-Nettotal) but i get wrongly arranged values according to a y-cities, because there are no free spaces, i mean 0 values, here is the screenshot to make it more clear: and the link to a question i asked before but couldnt get a clear answer: group by cities So what I and Dave DuPlantis have wrote so far is: the query: <cfquery name="GET_SALES_TOTAL"

CFHTTP issue with SSL - turn off security on cfhttp?

徘徊边缘 提交于 2019-12-25 03:25:01
问题 I've been having a pretty fun time trying to get this request to work. I've been doing a <cfhttp method="get"...> request to Facebook for some time without a problem. The request grabs an RSS feed so we can display it on our site. Unfortunately, someone recently noticed it stopped working. The only thing I can think of that could be causing the problem is the URL in my system is http://www.facebook.com... , but is being redirected to secure ( https://www.facebook.com... ). So I've tried

Connecting Coldfusion 9 with MySql 5 on Ubuntu 9.10

杀马特。学长 韩版系。学妹 提交于 2019-12-25 02:57:49
问题 I've recently set up a Ubuntu 9.10 server with a LAMP configuration and then installed Coldfusion 9 Development version as well. I've got phpMyAdmin working, so MySql and PHP are fine, and I can serve coldfusion pages, but if I cannot verify my Coldfusion datasource. I get the following error: Could not create connection to database server. Attempted reconnect 3 times. Giving up. With the top of the stack trace showing com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:

How to ImageSetEXIFMetadata and ImageSetIPTCMetadata in ColdFusion?

喜欢而已 提交于 2019-12-25 02:56:09
问题 ColdFusion 8, 9, & 10 provide ImageGetEXIFMetadata and ImageGetIPTCMetadata functions for extracting image meta data thanks to Drew Noakes according to this source. I'm looking for a way to easily set or edit image meta data. 回答1: You can use the Sanselan Java Library. I explained here how to remove ExifMetaData but you can also overwrite them easily. Project is now part of the commons-imaging. 来源: https://stackoverflow.com/questions/15842707/how-to-imagesetexifmetadata-and

inserting structure elements into database

混江龙づ霸主 提交于 2019-12-25 02:56:08
问题 I am looping through an array of structures as follows: <cfloop array="#cfData#" index="i"> <cfif structKeyExists(i, "date")> <cfset counter++> <cfoutput>#counter#</cfoutput> Date is: <cfoutput> #i.date#</cfoutput> <br/> </cfif> </cfloop> Now, I have to insert the values of Date and other keys into my database and I am attempting it like the following: <cfquery datasource="mydb" dbname="Stats"> INSERT INTO mydatabase VALUES <cfif structKeyExists(cfData, "date")> <cfset counter++>#cfData.date#

Accessing Query Data from CFC Function

杀马特。学长 韩版系。学妹 提交于 2019-12-25 02:53:40
问题 Here is what I am up against: I am trying to change the content of a CFDIV based on the selection from a CFSelect box. To do this I have bound the CFDiv to a CFC and I am trying to return two columns from my query that is executed in that CFC; Alert_Status AND Alert_Priority. These values will be queried based on a selection from the CFSelect box in my CFM page. Company_Name is the value passed to the CFC from the selection in the CFSelect box. Once the query in the CFC is run, I would like

Coldfusion memcached connections

青春壹個敷衍的年華 提交于 2019-12-25 01:56:16
问题 I'm trying to use http://www.flexablecoder.com/blog/index.cfm/memcached client. All works ok but for each cfm call, Coldfusion always open a new connection to the memcached server, not reusing an old one. Is there a way to reuse the memcached connections? 回答1: You need to initialize a singleton object, ie, only one instance of the memcached object. In application.cfc you can initialize in onApplicationStart method: <cfset application.memcachedFactory = CreateObject("component",