coldfusion

Why does HttpHeader X-Original-URL not exist on some pages?

☆樱花仙子☆ 提交于 2019-12-11 09:21:45
问题 My site using URL Rewrite to make SEO friendly URLs. This makes self-posting a form back to the same page a little tricky. However in ColdFusion I do this for the form's action attribute: <form name="formSortBy" method="post" enctype="multipart/form-data" action="#StructFind(GetHttpRequestData().headers, 'X-Original-URL')#"> </form> The important part here is the #StructFind(GetHttpRequestData().headers, 'X-Original-URL')# which gets me the URL of the page. However the X-Original-URL key just

Error with CFLoop When Entries Are Missing [duplicate]

怎甘沉沦 提交于 2019-12-11 09:08:15
问题 This question already has answers here : CFLoop Error For Missing Entries (2 answers) Closed 5 years ago . I have the following code. <cfoutput> <cfxml variable="eating"> <catalog> <results>10</results> <food id="bk101"> <initials>BK</initials> <keywords>Burger King, pie, hamburgers, fries, milkshakes</keywords> </food> <food id="bk102"> <initials>TB</initials> <keywords>Taco Bell, tacos, churros, burrito, gorditas</keywords> </food> <food id="bk103"> <keywords>Pizza Hut, pizza, cheese,

how to return an object (from a MySQL temporary table) into a Coldfusion stored procedure?

孤人 提交于 2019-12-11 08:58:56
问题 I'm calling stored procedure in Coldfusion8/MySQL which gets 3 types of min and max prices from products table. I'm having problems returning the temp table back to MySQL. The below code only returns the first foundMin value and not the temp table itself. If I run this inside MySQL the results are foundmin 1st price > returned to Coldfusion foundmax 1st price foundmin 2nd price foundmax 2nd price foundmin 3rd price foundmax 3rd price temporary table So I'm returning all individual table

DESede (3DES) Encryption in RAILO CFML

大憨熊 提交于 2019-12-11 08:58:21
问题 I've been trying for many days to try and solve this issue. A 3rd Party webservice requires me to send encrypted data using 3DES with ECB and PKCS7padding - They're using .NET The encrypt function within railo CFML is limited to DESede without any further options (i.e. defaults are used for cipher mode and padding). Has anyone had this issue in Railo and come up with a solution (java based perhaps)? - I'm seriously pulling my hair out here! Based on Leigh's suggestions below I made some

cfimage from binary in cfdocument

泪湿孤枕 提交于 2019-12-11 08:56:08
问题 I am writing a PDF dynamically, and am creating a QR code on the document for eTicketing purposes i set my cfdocument localurl=yes to include a different image, which works fine, but since I am using an API call to get the binary for the qrCode, the using cfimage to display the image, it is only showing a red X <cfdocument format="PDF" overwrite="Yes" localUrl="yes" pageType = "letter"> <body> <cfoutput> <section id="header"> <img src="file:///#ExpandPath('images/header.png')#"/> <cfimage

TripleDES Encryption - .NET and ColdFusion not playing nice

馋奶兔 提交于 2019-12-11 08:54:25
问题 I'm trying to exchange encrypted data between my ASP.NET application and another developer's CF app using TripleDES. Here's his CF code (fictitious key and IV of course): <cfset variables.theKey = "rpaSPvIvVLlrcmtzPU9/c67Gkj7yL1S5"> <cfset variables.theIV = BinaryDecode("password","Base64")> <cfset variables.theAlgorithm = "DESEDE"> <cfset variables.theEncoding = "Base64"> <cfif IsDefined("form.string") and IsDefined("form.method")> <cfif form.method is "encrypt"> <cfset variables.theString =

ColdFusion 9 - My thread is holding onto memory - how can I stop it?

自闭症网瘾萝莉.ら 提交于 2019-12-11 08:47:42
问题 I have a particular thread that I kick off when by CF9 application starts. It manages a queue and takes items from the queue to process them. If there are no items to take from the queue it will sleep() . This thread could live for weeks, processing and sleeping etc. The problem I am having is that the items I am taking from the queue are being retained in the heap (looks like in the Old Generation) long after I am done with them. A full garbage collection is done by the JVM about every hour

CFC JSON Output - Issue with displaying query results

独自空忆成欢 提交于 2019-12-11 08:47:04
问题 This is a long question - with a lot of detail - so first up apologies for that - but I'm not sure how to ask this in a briefer way. I have two CFC's, both are designed to return JSON from a query, and then I'm using jquery to display the results. The first CFC looks like this: <cfcomponent output="no"> <cffunction name="getRequests" access="remote" returntype="query"> <cfset var status = #arguments.status#> <run some query> <cfreturn getRequests> </cffunction> This is called and the result

extra html that I did not write

冷暖自知 提交于 2019-12-11 08:35:34
问题 My program has a bug -- the output has extra junk in it that doesn't belong there. Firebug shows me lines of code that would produce exactly this unwanted junk, but I don't have those lines in my program. I have spent hours on this and cannot solve it. Here is what Firebug says I have (the stuff in wavy brackets are my comments: <tr> <td class="repnum" style="width: 20px">1 </td> {td 1} <td class="reprow" style="text-align: left; "> Maura</td> {td 2} <td class="reprow" style="text-align: left

Coldfusion: Can't reference var from query result set

谁说我不能喝 提交于 2019-12-11 08:29:31
问题 Using cfscript, trying to set the ID of the newly inserted question so that I can use it in my answer insert to build the relationship. I've done this a million times outside of cfscript. setName seems to be the proper method to call to create the query name. I'm receiving the error that "theQuestionID" does not exist in qryQuestion i = 1; while ( structKeyExists( form, "question" & i ) ) { q = new Query(); q.setDatasource("kSurvey"); q.setName("qryQuestion"); q.setSQL(" set nocount on insert