coldfusion

Connection reset by peer: socket write error - cfcontent on Coldfusion 10

て烟熏妆下的殇ゞ 提交于 2020-01-11 08:42:13
问题 We recently upgraded from Coldfusion 9 to CF10 and I'm now receiving a sporadic error on a page where I'm using cfcontent to serve documents (pdf, doc, etc.) I'm using cfcontent to control access to the files, as some are for internal use only. This was not occurring when using CF9 (both standard), and I'm thinking it may be related to the change to Tomcat. I can't recreate the error, but it's occurring 200 times per day or so: coldfusion.tagext.OutputException: The cause of this output

Is there a natural language parser for dates/times in ColdFusion?

微笑、不失礼 提交于 2020-01-10 02:04:09
问题 Is there a natural language parser for date/times in ColdFusion? 回答1: There's a (reportedly -- I've not used it) good one for Java called JChronic -- a port of the Ruby Chronic date parser. You could try using it. It hasn't been updated since 2006, but should still be useful. 回答2: I believe parseDateTime() and lsParseDateTime() are the closest to what you're looking for, from the library of built-in ColdFusion functions. Check out Adobe's LiveDocs for other date/time functions. Remember that

cfoutput group prices

[亡魂溺海] 提交于 2020-01-07 08:32:28
问题 i want to group prices according to products id, like here: http://s44.radikal.ru/i106/1108/57/33380d0557f4.jpg but i can't group them properly, there are must be one product and few prices, rather than same products and different prices for each. so far with the help of Scott Stroz, i have wrote the code: the query: <cfquery name="get_products" datasource="#dsn3#"> SELECT DISTINCT P.PRODUCT_ID,P.PRODUCT_NAME,PS.MONEY,PR.PRICE FROM PRODUCT P JOIN PRICE_STANDART PS ON P.PRODUCT_ID = PS.PRODUCT

cfoutput group prices

江枫思渺然 提交于 2020-01-07 08:32:04
问题 i want to group prices according to products id, like here: http://s44.radikal.ru/i106/1108/57/33380d0557f4.jpg but i can't group them properly, there are must be one product and few prices, rather than same products and different prices for each. so far with the help of Scott Stroz, i have wrote the code: the query: <cfquery name="get_products" datasource="#dsn3#"> SELECT DISTINCT P.PRODUCT_ID,P.PRODUCT_NAME,PS.MONEY,PR.PRICE FROM PRODUCT P JOIN PRICE_STANDART PS ON P.PRODUCT_ID = PS.PRODUCT

Getting all sub records in a one-to-many relationship

不问归期 提交于 2020-01-07 06:42:07
问题 I am running a query for my application, that is really making me wish I used ORM. My table are structured as follows: tabs id name sort fields id label tabid As you can assume there is a one-to-many relationship between fields and tabs. What I would like to do is, using pure SQL if possible, create a query that has the tabs and underneath each tab shows a subquery of all fields. Currently I am just doing the following, but I was wondering if there is something better to do. <cfquery name=

Creating Combinations using CF List Loops

这一生的挚爱 提交于 2020-01-07 04:45:18
问题 I'm working on a Coldfusion project and I seem to be stuck. I am a newbie so I hope I don't get too much slack. The purpose of my project is to create a password list by using nested loops. I am to design a template that combines all words in the list "cold, fusion, dynamic" with all words on the list "bert, ernie, oscar" to produce a bulleted list of vaild passwords. This template should process two URL prarameters named List1 and List2. I must use two list loops nested within each other to

Selecting “uniqueidentifier” type in cfquery

霸气de小男生 提交于 2020-01-07 00:54:14
问题 I need to select a row where identifier matches my variable. Let's say, my variable value is "myvariable" (in uniqueidentifier form, of course). <cfset current_user_id = "myvariable"> Here's my "cfquery" content: <cfquery name="findUser" datasource="#SOURCE#"> SELECT db.[User].UserID FROM db.[User] WHERE db.[User].UserID = "#current_user_id#"; </cfquery> It returns the following error: [Macromedia][SQLServer JDBC Driver][SQLServer]Invalid column name 'myvariable'. The data and query is fine.

ISAPI_Rewrite and Coldfusion Rules

我与影子孤独终老i 提交于 2020-01-06 21:32:48
问题 This is the first time that I am trying to use ISAPI_Rewrite and ColdFusion. My hosting company has a wiki which says I need to create an .htaccess file and add the following rules to it: RewriteEngine on RewriteRule ^(.*?\.cfm)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,LP,QSA I have 8 main pages for my website: index.cfm products.cfm product-detail.cfm brands.cfm about.cfm contact.cfm specials.cfm gallery.cfm I have done that. What I would like to know is: Since I am new to this, are there any

ISAPI_Rewrite and Coldfusion Rules

匆匆过客 提交于 2020-01-06 21:31:34
问题 This is the first time that I am trying to use ISAPI_Rewrite and ColdFusion. My hosting company has a wiki which says I need to create an .htaccess file and add the following rules to it: RewriteEngine on RewriteRule ^(.*?\.cfm)/([^/]*)/([^/]*)(/.+)? $1$4?$2=$3 [NC,LP,QSA I have 8 main pages for my website: index.cfm products.cfm product-detail.cfm brands.cfm about.cfm contact.cfm specials.cfm gallery.cfm I have done that. What I would like to know is: Since I am new to this, are there any

CFDocument ignoring background color when in loop

只谈情不闲聊 提交于 2020-01-06 20:00:22
问题 I'm running a loop to build multiple PDFs. The background colors of pdf 2+ created in the loop just plain disappear. Doesn't matter if the background color is defined in CSS, as an HTML style, using hex code or just a color name. This is not an issue if I were to create 2 pdfs in a row without a loop. Any idea what gives? 回答1: This is a bug, it only effects cfdocument saved in memory, it does not effect cfdocuments that are displayed directly to the browser. If you have to save your document