coldfusion-9

What Notable Differences are there between Railo, Open Bluedragon, and Adobe Coldfusion?

馋奶兔 提交于 2019-12-06 20:17:10
问题 An attempt to capture notable differences between implementations: Adobe ColdFusion Railo Open Bluedragon (I'm aware of Smith, but don't believe it's still active). Include CFML and platform differences - syntax, feature, and extensibility. Note, this is not something I've not seen anywhere else, but maybe I'm just not searching correctly. So links to that end would count too. Update Here's my definition of notable in this context: something that simplifies solving a difficult problem. For

How to send table html with email using mailto?

夙愿已清 提交于 2019-12-06 15:35:28
I want to send a email using a href="mailto.." I have this working code below: <cfset month = URL.Month> <cfset year = URL.Year> <cfquery datasource="newsletters" name="testing"> SELECT * FROM departments_names where dates >='#datestart#' and dates < #dateend# AND shooting_star_dept_name IS NOT NULL ORDER BY DATEPART(year, dates), DATEPART(month, dates), </cfquery> <cfoutput query="testing" GROUP="deptartmetn_name"> <tr> <td> <a href="mailto:?subject=#month#/#year#%20%20Results%20for%20newsletters& body=#total_count#%20#total/total_count#"> Send email to #deptartmetn_name#</a></td> </tr> <

Best way to check if value is integer ? Coldfusion 9

旧街凉风 提交于 2019-12-06 07:28:27
I have fields to test and make sure they only accept integers . There is few functions but I wasn't sure which one is the best. First I tried isValid("integer",value) but I have discovered that "1,5" will be accepted as an integer. So then I tried isNumeric(value) but this will accept values like 1.5 . I'm wondering what should be the best way to check for integers? Maybe two combine these two functions like: <cfif isValid("integer",value) AND isNumeric(value)> Or there is better way to do this? You could try this: value = replace(value, ',', '', 'all'); numberIsInteger = isNumeric(value) &&

Encrypt in ColdFusion, Decrypt in C#

坚强是说给别人听的谎言 提交于 2019-12-06 06:21:12
I have a string that was encrypted with ColdFusion 9 using the encrypt() function. The problem is that the function was called using the the UUEncode algorithm (default). I need to decrypt this value using C#. All of the samples use Base64 encoding. Any ideas? Here's what was used in ColdFusion <cfset encryptionKey = generateSecretKey( "AES" ) /> <cfset pwhash = encrypt( user_password, encryptionKey, "AES", "UU" ) /> I have the resulting values. I also have the resulting decrypted value for one user, so I could compare it with something in C#. I need to decrypt the passwords for all users in a

Coldfusion HMAC-SHA1 encryption

会有一股神秘感。 提交于 2019-12-06 04:10:21
问题 There is an example HMAC-SHA1 here that works in javascript http://jssha.sourceforge.net/ Text to encrypt vibaHBXwUXFqVSg-+kTrqYJZEJkbVeqLc=bo.LlXGET12505351831husu9039http://api.tineye.com/rest/search/image_url=http%3a%2f%2ftineye.com%2fimages%2ftineye_logo_big.png&limit=30&offset=10 Key vibaHBXwUXFqVSg-+kTrqYJZEJkbVeqLc=bo.LlX Output 9e734661c9e8b6dc9b6b4b3def9769c00e8843b8 Issue I can't however duplicate the output in Coldfusion. I'm using a function from a previous Stackoverflow.com

Include Java Files into Coldfusion

假装没事ソ 提交于 2019-12-06 03:23:53
问题 How can I include jar/java files into my coldfusion project. currently I am using this line into me <cfscript> Me directory is looks like this website_name |__ Login |__ connection |__ display.cfm |__ twitter |__ com |__ ConfigurationBuilder.java in my display.cfm file I am calling obj in script like this <cfscript> configBuilder = createObject("java", "twitter.com.ConfigurationBuilder"); </cfscript> but it gives me error on this line when I run display.com and error is this An exception

How do you map a base class using ColdFusion ORM?

心已入冬 提交于 2019-12-06 03:19:32
问题 I have two components, a base Entity component: <cfcomponent persistent="true"> <cfproperty name="Id" fieldtype="id" generator="native"> </cfcomponent> And a Client component that extends it: <cfcomponent persistent="true" extends="Entity"> <cfproperty name="FirstName"> <cfproperty name="LastName"> </cfcomponent> However, when I try to create an instance of Client , I get an error that says that they're being mapped as two different tables. I know Hibernate has the ability to ignore a base

displaying an ajax response with jquery

白昼怎懂夜的黑 提交于 2019-12-05 23:03:54
I have a Coldfusion cfc that queries a database for data. I would like to call that cfc and display the ajax response within a div. Eventually I would like to format the response with html. Currently I am having trouble with displaying the response. This is what I have so far. Here is the cfc : Asset.cfc <cffunction name="Asset" access="remote" returntype="array"> <cfargument name="asset_id" type="string" required="yes"> <!--- Define the local scope. ---> <cfset var LOCAL = {} /> <cfset var qPics = "" /> <cfset var result = arrayNew(1) /> <cfset var PicStruct = '' /> <cfquery name="Pics">

ColdFusion SessionTracker and forcing the session to end

我怕爱的太早我们不能终老 提交于 2019-12-05 15:42:09
I'm using the ColdFusion 9 coldfusion.runtime.SessionTracker to monitor currently logged in users using the following code. app = application.getApplicationSettings().name; sessiontracker = createObject("java","coldfusion.runtime.SessionTracker"); sessionCollection = sessionTracker.getSessionCollection(app); Which returns a struct of jsessionid 's and the session's variables for all the currently active sessions. Is it possible to force a session to end given I have the jsessionid effectively forcing the user to be logged out? Thanks, Richard So when a user logs in I'm setting a user structure

how to loop over the tables of a database?

人走茶凉 提交于 2019-12-05 11:54:41
I am trying to loop over the tables of a database using the following code getting an error java.lang.UnsupportedOperationException . i have even tried with cfloop query and other attributes got errors complex value can't convert to simple value. can anyone tell me how shall i have to loop over this query ? Thanks. <cfquery name="q" datasource="datasource"> SHOW TABLES FROM datasource </cfquery> <cfloop collection ="#q#" item="i"> #q[i]# </cfloop> You are getting that error because cfloop collection expects a structure, not a query object. Hence the "UnsupportedOperation..." error. Instead you