coldfusion

Java class cached in ColdFusion

只愿长相守 提交于 2019-12-22 18:10:35
问题 When developing my own Java class to use within ColdFusion 8 I stumble upon a problem that ColdFusion doesn't recognize that the *.java or *.class was changed, at least i don't see the change I made appear on the page. Is it some kind of caching issue? 回答1: You might try using the JavaLoader from RIAForge. It lets to specify a JAR or .class file to load. It doesn't even need to be in the classpath so you can store the JAR in with your CFML if you like. I'm pretty sure its not impacted by

Recursive Function in Coldfusion

做~自己de王妃 提交于 2019-12-22 13:52:35
问题 I'm trying to create a recursive function in coldfusion and am coming across some issues. Here is the logic I have: <cffunction name="getEvents" access="private"> <cfargument name="strtdate"> <cfargument name="parentID" default=0> <cfqeury name="qry" datasource="db"> select * from table where parentid = #parentid# and starttime between #strtdate# and #DateAdd('d', 1, strtdate)# </cfquery> <cfset events = arraynew(1)> <cfloop query="qry"> <cfset events[qry.currentrow] = structnew()> <cfset

Need suggestion for running a JPA + Hibernate java project on Coldfusion 9

梦想与她 提交于 2019-12-22 13:46:24
问题 I have a java project that uses JPA 2/Hibernate 3.5.6 for data access and it works great on a JBoss app server. Now I am trying to run this on a Coldfusion 9 environment and I see CF 9 already has hibernate3.jar and related jars thats needed for its ORM implementation. But, I would like to use my java project as is on CF and for that, I would need the same hibenate 3.5.6 jar and related jars on CF. So, I moved all the jars that I need, created a new folder in CF and updated the jvm.config to

404 Handler Hanging on ColdFusion 10, works perfect on ColdFusion 8

寵の児 提交于 2019-12-22 10:33:54
问题 I'm having an odd intermittent issue with the 404 handler pages on our ColdFusion 10 server. Here's the backstory: We have been running 2 load-balanced ColdFusion 8 servers for ages without issue. We have upgraded one of these two servers to ColdFusion 10 in order to soft-launch our ColdFusion 10 upgrade. I've installed Update 8 on the CF10 server, and have removed and re-added the connectors. Both servers are running Windows 2008 R2. I've read several forum posts stating issues with people

BULK INSERT missing last row?

孤人 提交于 2019-12-22 10:24:01
问题 I use BULK INSERT for my text files. Everything works fine but one thing that I discovered, If I give the final line's final column a value, it will import. If the value of that final column in the final line is blank, it discards the line, despite the fact that the destination column allows nulls! Text file uses tab delimiter, here is example of the last row data: Mike Johnson 1/29/1987 M if I have any value in the last column field row will be inserted, example here: Mike Johnson 1/29/1987

JQuery AutoComplete with Remote Data (COLDFUSION)

夙愿已清 提交于 2019-12-22 09:48:35
问题 I'm a newbie with JQuery trying to pull remote data from a ColdFusion query to show in my textbox. I am receiving an error in firebug when calling my CFC: Uncaught TypeError: Cannot use 'in' operator to search for '453' in I don't know what this may mean. I can see that is pulling data from my database because further down in my console output, I see my data: [{"value":1,"label":"Test article"}] jquery-1.10.2.js:997 Can anyone help on this error? Full HTML code: <!DOCTYPE html PUBLIC "-//W3C/

How do you use Coldfusion Builder 2 in a team environment using a common development server?

自古美人都是妖i 提交于 2019-12-22 09:28:48
问题 Our CF 9 development environment is on a common development server (DEVWEB). We're looking at moving from Dreamweaver to Coldfusion Builder as our IDE and I'm concerned about the way CF Builder drops a .settings directory and .project file in the root of the project. How do development teams deal with this? If a team member make changes to their settings, don't their changes to the project preferences / settings overwrite mine? Or are the types of settings that are included in those bundles

Problem using unicode in URLs with cgi.PATH_INFO in ColdFusion

爷,独闯天下 提交于 2019-12-22 08:52:49
问题 My ColdFusion (MX7 on IIS 6) site has search functionality which appends the search term to the URL e.g. http://www.example.com/search.cfm/searchterm . The problem I'm running into is this is a multilingual site, so the search term may be in another language e.g. القاهرة leading to a search URL such as http://www.example.com/search.cfm/القاهرة The problem is when I come to retrieve the search term from the URL. I'm using cgi.PATH_INFO to retrieve the path of the search page and the search

Coldfusion onCFCRequest Changing Return Type of XML Into WDDX

喜欢而已 提交于 2019-12-22 08:37:48
问题 My customer base is finally off Coldfusion 8 so now I can take advantage of Coldfusion 9's Application.cfc -> onCFCRequest event. I have a test scenario setup and my result is not what I'm expecting. I have a method that I call which produces a valid XML response like so... Response Header: Content-Type:application/xml;charset=UTF-8 Response: <?xml version="1.0" encoding="UTF-8"?> <rows><row id="10000282742505"><cell/><cell> ... Now after I introduce the onCFCRequest event I get this back

How do I reset application.cfc without resetting the server instance? [duplicate]

空扰寡人 提交于 2019-12-22 07:45:32
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: restart application without restarting server? How do I reset a Coldfusion Application / application.cfc without resetting the Coldfusion Server instance? If I remember right, there are a few tricks out there such as creating a reinit function within application.cfc or renaming the file. 回答1: A couple of steps: First, make sure all your application initialization logic is contained inside the OnApplicationStart