coldfusion-10

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

假如想象 提交于 2019-11-29 17:57:29
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? 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 about REST to see if it's the kind of API you'd like to build. Good luck! 来源: https://stackoverflow.com

Google Java API conflicted with ColdFusion CFHTTP?

佐手、 提交于 2019-11-29 15:54:28
I tried copying all those JAR's found in the google-api-client-assembly-1.20.0-1.20.01.zip (downloaded from https://developers.google.com/api-client-library/java/google-api-java-client/download ) to {cf_root}/lib , restart ColdFusion, and everything loaded up fine. However, when I used <cfhttp> : org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [/] threw exception [org.apache.http.impl.client.DefaultHttpClient.setRedirectStrategy(Lorg/apache/http/client/RedirectStrategy;)V] with root cause java.lang.NoSuchMethodError:

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

試著忘記壹切 提交于 2019-11-29 12:07:39
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][SQLServer]Login failed for user 'xxxxx'. The root cause was that: java.sql

How to install custom Java class for ColdFusion 10

萝らか妹 提交于 2019-11-29 11:13:41
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 ? 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 However, it does not change the rules about class loading . Jars can be placed anywhere, as long as they are

Coldfusion 10 DateFormat Issue

笑着哭i 提交于 2019-11-29 08:32:18
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: 2013-01-05 ( yyyy-dd-mm ) Any help or guidance as to what is wrong would be highly appreciated. I

auto refresh for every 5 mins

南楼画角 提交于 2019-11-29 02:52:29
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="form2"> <cfset f="#files.recordcount#"> <cfset mydatetime=now()> <cfset a=TimeFormat(MyDateTime,'hh:mm

encodeForHtml() vs htmlEditFormat()

怎甘沉沦 提交于 2019-11-28 13:28:44
encodeForHtml() (new in CF10) vs htmlEditFormat() , how are they different? 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&#x72&#x74&#x28&# x27&#x58&#x53&#x53&#x27&#x29> <IMG SRC=&#0000106&#0000097&#0000118&#0000097&#0000115&

Passing more then 100 arguments to ColdFusion function throws an error

自古美人都是妖i 提交于 2019-11-28 12:09:47
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. 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 , by adding* or updating the XML node: <var name='postParametersLimit'><number>300.0</number></var> Then save

How to add TLS 1.2 in cfhttp tag in ColdFusion 10

拥有回忆 提交于 2019-11-28 09:42:39
问题 I am using ColdFusion 10. How can I specify my connection is TLS 1.1, TLS 1.0, etc. Can I use the cfhttp tag? How to add TLS 1.2 in cfhttp tag using ColdFusion? 回答1: ColdFusion 10 will handle the TLS 1.2 protocol using CFHTTP without any issues as long as you are running Coldfusion on Java 1.8.0_nn. You need to upgrade your Java version. Also see this article I wrote on which SSL/TLS protocols are usable for each ColdFusion/Java version combinations. https://www.trunkful.com/index.cfm/2014/12

Does CF10 support secure websocket wss?

北慕城南 提交于 2019-11-28 08:13:54
问题 Can someone using CF10 confirm if CF10 supports secure websocket wss:// ? http://blog.kaazing.com/2012/02/28/html5-websocket-security-is-strong/ 回答1: I checked with Hemant. The answer is no, it is NOT supported now, but it is under progress to be added. 回答2: On the basis of there being not a single mention of "secure websocket" or "wss" in the CF10 docs (according to Google), and in all the blogging Ray Camden has done on the topic there is not a single mention of it either, and indeed the