coldfusion-10


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

How can i extract field name and values on a form easily

社会主义新天地 提交于 2020-01-16 04:57:08
问题 I am in need of parsing field name and values from an html form to add to my db. I know i can go and do a find "input name='" then start another find to find the closing "'" and get the data via mid function then do the same for value via find "value='" I was wondering if there is an easier way to loop the doc and extract all input names and the associated values ? Below is a sample of what my page to parse looks like <input name='a_glare' value='B' class='inputbox-highlighted-false' size='1'

ColdFusion10 CFDocument debug output

我的梦境 提交于 2020-01-15 06:06:35
问题 Is there a way to capture the complete HTML code from CFDocument before it generates the actual Document/PDF (for debugging)? The tag itself doesn't seem to support it. What works partially is storing the separate parts of the HTML via cfsavecontent but I can't capture the whole thing at once: <cfsavecontent variable="test123"> <style type="text/css" media="screen"> <!-- Style based on paperSize--> <cfoutput> #request.paperSize.css# </cfoutput> </style> </cfsavecontent> <cfdump var="#test123#

ColdFusion10 CFDocument debug output

試著忘記壹切 提交于 2020-01-15 06:05:30
问题 Is there a way to capture the complete HTML code from CFDocument before it generates the actual Document/PDF (for debugging)? The tag itself doesn't seem to support it. What works partially is storing the separate parts of the HTML via cfsavecontent but I can't capture the whole thing at once: <cfsavecontent variable="test123"> <style type="text/css" media="screen"> <!-- Style based on paperSize--> <cfoutput> #request.paperSize.css# </cfoutput> </style> </cfsavecontent> <cfdump var="#test123#

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

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.

Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

荒凉一梦 提交于 2020-01-04 14:21:23
问题 I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found. IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine. 回答1: I had this problem as well. Running on Windows Server 2008 R2. I found some threads that suggested that

Coldfusion 10 on Windows 2k8 - .com/ loads OK but .com/index.cfm gives a 404

▼魔方 西西 提交于 2020-01-04 14:21:15
问题 I'm setting up a new server (CF10 W2K8) going by Pete Freitag's new CF10 lockdown guide. I have a test site installed and if I bring up www.mydomain.com it loads the default document (index.cfm) just fine. However, if I try www.mydomain.com/index.cfm (or any other specific .cfm page), I get a 404 not found. IIS logs do record a 404 error. If I create a .htm/.html page it comes up fine. 回答1: I had this problem as well. Running on Windows Server 2008 R2. I found some threads that suggested that

工具导航Map