coldfusion-10

ColdFusion 10/Windowns 7 Pro 64bit Connection verification failed for data source

↘锁芯ラ 提交于 2019-11-28 05:40:47
问题 I’m having issue setting up a data source on my new windows 7 Pro 64bit laptop. I have a fresh install of Coldfusion 10 with latest hot fix and Microsoft SQL Express 2012 64bit. I have ensured that TCP/IP enable and set TCP port to 1433 in the SQl server configuration manager. I've also tried removing the TCP Dynamic Ports. I’m still getting this error: Connection verification failed for data source: TEST java.sql.SQLInvalidAuthorizationSpecException: [Macromedia][SQLServer JDBC Driver]

How to install custom Java class for ColdFusion 10

只愿长相守 提交于 2019-11-28 04:58:13
问题 We have just deployed CF 10 onto some new servers. I'm trying to follow this process, which we had working without any issues on CF8. However I'm not sure how things are structured in CF10. Our directory path in CF 10 appears as: Coldfusion10\ cfusion jre ininstall Do all the additional Java classes get installed into jre ? 回答1: The only difference in CF10 is there is an extra directory layer between the {install root} and {web root}. ie coldfusion8\wwwroot coldfusion10\cfusion\wwwroot

ColdFusion: about using custom “own written” Java classes

牧云@^-^@ 提交于 2019-11-28 01:11:15
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? 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 locations for classes/jars. Those locations are referred to as the "CF class path". Your compiled .class file must

auto refresh for every 5 mins

你。 提交于 2019-11-27 17:11:38
问题 this is my code <html> <head> <script language="javascript" src="JS/jQuery.js"></script> <script> function page_refresh(){ document.getElementById('form2').action="project_file_dir.cfm" document.getElementById('form2').submit(); } </script> </head> <body > <cfoutput> <cfset fileLocation ="\\squeaker\SiSystemsFile\WebServices\WebSites\Perforce\Bhargavi"> <!--- On mac set to /tmp ---> <cfdirectory action = "list" directory = "#fileLocation#" name = "files" filter="*.*"> <form method="post" id=

encodeForHtml() vs htmlEditFormat()

耗尽温柔 提交于 2019-11-27 07:41:56
问题 encodeForHtml() (new in CF10) vs htmlEditFormat() , how are they different? 回答1: I think it is same as encodeForHTML function in java's OWASP ESAPI. More secure to avoid XSS attack to use content in HTML. <cfsavecontent variable="htmlcontent"> <html> <head> <script>function hello() {alert('hello')}</script> </head> <body> <a href="#bookmark">Book Mark & Anchor</a><br/> <div class="xyz">Div contains & here.</div> <IMG SRC=&#x6A&#x61&#x76&#x61&#x73&#x63&#x72&#x69&#x70&#x74&#x3A&#x61&#x6C&#x65&

Passing more then 100 arguments to ColdFusion function throws an error

狂风中的少年 提交于 2019-11-27 06:48:04
问题 There is a ColdFusion function where we have to pass more then 100 arguments to get a search result. When passing these 100 odd parameters into the function, ColdFusion throws the error: " 404 not found " I tried to increase post size Limit in CF server settings from 100 to 300 but am still getting the error. 回答1: Increasing the "post size limit" only changes how many megabytes can be received, not the quantity. For that, you need to increase the "post parameters limit" in neo-runtime.xml ,

Coldfusion 10 returnformat=“JSON” adding characters

好久不见. 提交于 2019-11-27 02:21:55
I have an app that I'm working on converting from CF8 to CF10 and some of my remote CFCs where the data coming back should be JSON are now failing because there seems to be a "//" pre-pended to the returned data. For example here's an output of a returned structure: //{"SUCCESS":true,"ERRORS":[],"DATA":{"COLUMNS":["AUTHRESULT","SPID","EMAIL","RID"],"DATA":[[true,361541,"user@domain.com",""]]}} The same function run through the same CFC on the CF8 server gives: {"ERRORS":[],"SUCCESS":true,"DATA":{"COLUMNS":["AUTHRESULT","SPID","EMAIL","RID"],"DATA":[[true,361541,"user@domain.com",""]]}} The CFC

What are the details for using CF_SQL_NVARCHAR in ColdFusion 10?

浪尽此生 提交于 2019-11-26 22:46:07
The ColdFusion 10 documentation on Updating Your Database has a section on Database-related enhancements in ColdFusion 10 . That page mentions that there is now support for CF_SQL_NVARCHAR among others, but with no details about them. Additionally, the cfqueryparam documentation hasn't been updated to include their existence. The ColdFusion 9 documentation for cfqueryparam mentions that CF_SQL_VARCHAR maps to varchar in MSSQL. This is true unless the ColdFusion Administrator datasource settings has the String Format setting enabled. In which case CF_SQL_VARCHAR maps to nvarchar . This poorly

Coldfusion 10 returnformat=“JSON” adding characters

风格不统一 提交于 2019-11-26 10:02:09
问题 I have an app that I\'m working on converting from CF8 to CF10 and some of my remote CFCs where the data coming back should be JSON are now failing because there seems to be a \"//\" pre-pended to the returned data. For example here\'s an output of a returned structure: //{\"SUCCESS\":true,\"ERRORS\":[],\"DATA\":{\"COLUMNS\":[\"AUTHRESULT\",\"SPID\",\"EMAIL\",\"RID\"],\"DATA\":[[true,361541,\"user@domain.com\",\"\"]]}} The same function run through the same CFC on the CF8 server gives: {\

What are the details for using CF_SQL_NVARCHAR in ColdFusion 10?

六眼飞鱼酱① 提交于 2019-11-26 09:10:19
问题 The ColdFusion 10 documentation on Updating Your Database has a section on Database-related enhancements in ColdFusion 10. That page mentions that there is now support for CF_SQL_NVARCHAR among others, but with no details about them. Additionally, the cfqueryparam documentation hasn\'t been updated to include their existence. The ColdFusion 9 documentation for cfqueryparam mentions that CF_SQL_VARCHAR maps to varchar in MSSQL. This is true unless the ColdFusion Administrator datasource