coldfusion-10

CF 10 crashes on a large number of form fields

我们两清 提交于 2019-12-20 06:23:45
问题 When submitting a large number of form fields, ColdFusion 10 crashes even if ColdFusion 9 does not. 回答1: Earlier versions of ColdFusion 9 did not restrict the number of form fields that could be submitted. ColdFusion 10, be default limits the number of fields to 100. If you go to Server Settings -> Settings then the to Request Size Limits section. There is a setting called Maximum number of POST request parameters . It needs to be adjusted upward 回答2: As Leigh mentioned (I can personally

SQL IN Statement - Value In (database_field)

主宰稳场 提交于 2019-12-20 02:58:42
问题 Part of a search query i'm building requires filter values to be processed through an SQL query to check against a CSV list within a database field. (I have no control over the use/non use of CSV lists within database fields, working with what i have) and I have done a little testing and found that you can do the following: Where database_field In (#CSV_list#) If database_field equalled 2 and CSV_list equalled 1,2,3,4 this would return true as the value of 2 was found within the CSV list.

SpreadsheetFormatRow abruptly stops working

筅森魡賤 提交于 2019-12-20 02:15:16
问题 I've seen this post, but there does look to be a resolution. Anyway, I'm using ColdFusion 10 to generate an Excel spreadsheet. However, when I use SpreadsheetFormatRow() and pass in the rows to be formatted, it only does about 3 and then abruptly stops. Here is an example... ColdFusion Code <cfscript> rowCount = 1; headingRows = 4; // Create instance of new Spreadsheet excelSheet = SpreadsheetNew("ReportName",false); // HEADING (IMAGE) ROW FORMAT formatHeadingRow = StructNew();

Scheduled Tasks not running - Coldfusion Server Administration

ε祈祈猫儿з 提交于 2019-12-20 01:41:13
问题 I have a series of scheduled tasks that all run at various times of the day. Since the migration from Coldfusion version 7 to 10, these tasks have stopped running. When I check the box, that outputs the results to a file, I get a text file that says nothing more than "Connection Failure". I have tried everything imaginable regarding the username and password for the task. It makes no difference. When I run the CFM page in my browser, the page works correctly and generates an email just like

Using a newer version of Apache POI in ColdFusion 10

我的未来我决定 提交于 2019-12-20 00:10:20
问题 I would like to use newer version of Apache POI with ColdFusion 10 than the one with which it ships, as I need to access some of the newer functionality. I have tried swapping ColdFusion's Apache POI JAR files for the newer versions but this causes some of the built in ColdFusion spreadsheet functionality to break. Is it possible to load in the newer version for use in my code but leave ColdFusion's version untouched so that the built in spreadsheet functionality still works? I know it is

Is the “Maximum number of POST request parameters” limit trappable?

泪湿孤枕 提交于 2019-12-19 16:28:22
问题 Coldfusion 10 allows a limit to be set for the maximum number of POST request parameters (Server Settings / Settings / Request Size Limits / Maximum number of POST request parameters). The default limit is 100. Is it possible to trap when this limit has been exceeded so that it can be handled with a custom handler? If yes, how? I've tried to trap it with a site wide error handler and an onError() method in Application.cfc. Neither attempt was successful. Thanks for looking. 回答1: I can confirm

advantage of REST in CF10 vs invoking remote method through ajax?

白昼怎懂夜的黑 提交于 2019-12-18 09:37:45
问题 Have anyone used REST in CF10 for production? How is that better then ajax calling remote method, e.g. foo.cfc?method=blah ? Can you get your RESTful API pure stateless? Do you still rely on session cookie? 回答1: REST and remote calls to a method are two entirely different options, neither of which are necessarily "better". REST services in CF are stateless by default. It's really up to you if you want to get sessions involved or any other state for that matter. I would suggest reading more

Coldfusion 10 DateFormat Issue

孤者浪人 提交于 2019-12-18 05:14:16
问题 I am using the DateFormat function to convert dates to this format: yyyy-mm-dd . This is the original format of the date: dd-mm-yyyy . Below is a snippet of the code: <cfset newdate = #DateFormat(Trim(mydate), "yyyy-mm-dd")# /> The problem is that I get different results for different dates. For example: If my original date is: 15-05-2013 ( dd-mm-yyyy ) The result is: 2013-05-15 ( yyyy-mm-dd ) However, if I change the input and: The original date is: 01-05-2013 ( dd-mm-yyyy ) The result is:

ColdFusion: about using custom “own written” Java classes

孤街醉人 提交于 2019-12-17 16:48:28
问题 I need to use my own java class in a cfml page. This entry in the documentation sounds great but does not explain which files I have to create. I tried to create a test.cfm page under my website root. Then placed TestClass.java + TestClass.class in the same path. But that results in an error "class not found"!. Can you please help me? 回答1: a TestClass.java + TestClass.class in the same path. You cannot just place .class files anywhere. When the CF server starts, it only checks specific

ColdFusion 10, IIS 7.5, and custom 404 page

萝らか妹 提交于 2019-12-14 03:54:34
问题 I am attempting to setup a custom 404 error with CF10 and IIS 7.5. Previous to CF10 (and IIS 7), you can get the URL of the non-existent page via the querystring (e.g., 404;http://www.example.com/some/file.html) when the custom 404 page is processed. However, with CF10 and IIS 7.5, the querystring returns 404;http://www.example.com/jakarta/isapi_redirect.dll. Is there a way to retrieve the actual URL of the missing path, like in prior versions? 回答1: I have a workaround that I posted to the