coldfusion

ColdFusion 11 installation unsuccessful

别来无恙 提交于 2020-01-24 23:03:49
问题 I installed ColdFusion 11 Developer version (downloaded from Adobe site 3 months trial) on Windows 8.1 and IIS7. I got this error when trying to open the ColdFusion administrator (see below). Is there a step by step example on how to fix this? HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module CustomErrorModule Notification SendResponse Handler cfmHandler Error Code

ColdFusion 11 installation unsuccessful

為{幸葍}努か 提交于 2020-01-24 23:03:27
问题 I installed ColdFusion 11 Developer version (downloaded from Adobe site 3 months trial) on Windows 8.1 and IIS7. I got this error when trying to open the ColdFusion administrator (see below). Is there a step by step example on how to fix this? HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module CustomErrorModule Notification SendResponse Handler cfmHandler Error Code

How to populate a select list using a structure inside select HTML helper in ColdBox?

天涯浪子 提交于 2020-01-24 17:17:25
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>

How to populate a select list using a structure inside select HTML helper in ColdBox?

丶灬走出姿态 提交于 2020-01-24 17:17:12
问题 I want to generate a select list that should look like the following- <select name="isActive"> <option value="True">Yes</option> <option value="False">No</option> </select> For this I am using select() HTML helper in ColdBox. #html.select( options=qActiveOptions, nameColumn="value", name="isActive", label="Active:", required="required", title="Active", )# Where qActiveOption is the query that I created using the code below- <cfset qActiveOptions=queryNew('name,value', "VarChar,VarChar")>

QueryNew() Data Types in CF9

元气小坏坏 提交于 2020-01-24 15:08:14
问题 I have taken over a system that is on a production server that is running CF9.0.1 and I cannot find a copy of that in the developer's edition, so I am running CF10. I am exporting data from the database to Excel. Because the data comes from multiple datasources, the results are manually entered into a query that is then used to output to Excel. One of my first problems to solve was that, because Excel automatically types data, wierd things were happening like trailing zeros being dropped,

Best way to store permissions for the user account?

空扰寡人 提交于 2020-01-24 10:14:07
问题 I have permission records that are tied to each account in my application. Each account can have one or multiple permission records based on account type. Here is example: <cfquery name="qryUserPerm" datasource="#Application.dsn#"> SELECT AccessType, AccessLevel, State, City, Building FROM Permissions WHERE AccountID = <cfqueryparam cfsqltype="cf_sql_integer" value="#trim(session.AccountID)#"> </cfquery> Query above will produce data like this for one of the accounts: RecID AccountID

What's the best way to remove HTML from a string?

会有一股神秘感。 提交于 2020-01-24 09:52:26
问题 I recently started using the following RegEx in a ReReplace() function to strip HTML tags from a string using ColdFusion. Please note: I am not using this as protection from XSS or SQL injection; this is only to remove existing and safe HTML from a string before it's displayed in an HTML title attribute. REReplaceNoCase(str,"<[^>]*>","","ALL") In a semi-related question I asked how to modify my RegEx to include spaces and line breaks. I was told that using RegEx for this purpose is not

Can't get IIS 7/Coldfusion to deliver 404

纵然是瞬间 提交于 2020-01-24 07:32:10
问题 So... we have a custom CMS. We have a rewrite rule that any page request (when a file doesn't exist) goes to the root/index.cfm file. There we search our DB for the page in question. If the page exists, we serve up the correct template,etc. If the page doesn't exist I want to server up a 404 page. Now I "think" I cannot do this in IIS since I need to handle the request in CF, so it has to get through. The file will always exist. When the page doesn't exist I've tried using <cfheader

Can't get IIS 7/Coldfusion to deliver 404

↘锁芯ラ 提交于 2020-01-24 07:31:53
问题 So... we have a custom CMS. We have a rewrite rule that any page request (when a file doesn't exist) goes to the root/index.cfm file. There we search our DB for the page in question. If the page exists, we serve up the correct template,etc. If the page doesn't exist I want to server up a 404 page. Now I "think" I cannot do this in IIS since I need to handle the request in CF, so it has to get through. The file will always exist. When the page doesn't exist I've tried using <cfheader

Can't get IIS 7/Coldfusion to deliver 404

こ雲淡風輕ζ 提交于 2020-01-24 07:31:52
问题 So... we have a custom CMS. We have a rewrite rule that any page request (when a file doesn't exist) goes to the root/index.cfm file. There we search our DB for the page in question. If the page exists, we serve up the correct template,etc. If the page doesn't exist I want to server up a 404 page. Now I "think" I cannot do this in IIS since I need to handle the request in CF, so it has to get through. The file will always exist. When the page doesn't exist I've tried using <cfheader