The official community for ColdFusion.
Recently active
i want to do something very simple: when session expires, automatically redirect to a login page.onSessionEnd looks like the logical choice, but i wasn't able to make it do anything at all!any example that can show this function can do stuff is welcome, i've tried a bunch of them already, nothing works.<cfcomponent output="false"> <cfset this.name="testApp" /> <cfset this.sessionManagement = true /> <cfset this.applicationTimeOut = CreateTimeSpan(0,0,0,20) /> <cfset this.sessionTimeout = createTimeSpan(0,0,0,20) /> <cfset this.clientManagement = true /> <cffunction name="onSessionEnd" access="public" returntype="void" output="false"> <cflocation url="login.cfm"> </cffunction></cfcomponent>
Our agency has been running CF in distributed mode since CF6. We know how to use the JRun Connector with multiple IIS 6 web sites on multiple physical hosts to connect to multiple CF clusters hosted on separate physical servers. I am doing a test installation with a fully licensed version of CF10 Enterprise to make a recommendation to management as to whether or not we should upgrade to CF10 when we move to WIndows 2012 R2 and IIS 8.5 in 2014 or perhaps stay on CF9.0.x for a few more years & skip CF10. CF9 has been stable for years. There was a lot of help documentation with the JRun Connector and technotes regarding how to run ColdFusion in distributed mode; unfortunately, I cannot say the same for CF10 and the Tomcat connector. I do not want all web sites to be configured for ColdFusion; some of the web sites are purely .NET.I tried the manual configuration of the connector, but the server returns the dreaded "Incorrect function" error me
Hi All,Is it possible to set the multiple datasources on a Application.cfc using this.datasouce attribute? CF 9, from application.cfc, you can set <cfset this datasouce ="myDSN1" > and no need to specify the DSN in the query. My question is if I have multiples Datasouces, how can i set them up in application.cfc? <cfquery name="qDoctype">select * from type</cfquery>Thanks
I am trying to install CF10 Update 11 but it is complaining that the jar file is invalid or corrupt. I have attempted to download it now on 3 different computers with the same result on each.
Hi,I would like to force IE using compatibility mode to visit webpage. However, after I set the custom header "X-UA-Compatible: IE=EmulateIE9", it stills does not work. Only .NET project can be auto applied compatibility mode.Is there any setting I have missed for setting ColdFusion webpage to use compatibility mode?Thanks.
I have logout link on the index.cfm and check IsDefined in Application.cfcin OnRequestStart.Should OnRequestStart running every time user click go to the form, for this case pass link index.cfm?Logout and CFLOGOUT trigger?For some reason, when user click the link, it still running index.cfm and user still login.any information help is great appreciated,Regards,Iccsi, <p><a href="index.cfm?logout">log Out</a><p><cfif (IsDefined("Form.logout") )> <cflogout></cfif>
So when we have created our coldfusion 9 instance on solaris all the files and settings of the master instance are copied except the jvm.config file. This means that any changes made here are used for all instances of ColdFusion on that Node. Now I want to play with memory settings for fine tuning of Application performance and I want to do it on one single instance. I want to know the process of creating individual jvm.config files for each instance.ThanksPradeep
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7c30.htmlI followed above link to create a user login function.I want to it shows user welcome message and set login input invisible and give user logout button to logout.It gives me login form, but it does not show welcome message and login input still on the form.Here is my code which is exatly from above link.Can you please help me to see any mistake in my code or modify the code to make login to show welcome message and invisible login input and give user logout button?Your help and information is great appreciated,Regards,Iccsi,<cffunctionname="OnRequestStart"access="public"returntype="boolean"output="false"hint="Fires at first part of page processing."> <!---Define arguments.---> <cfargumentname="TargetPage"type="string"required="true"/> <cfif IsDefined("Form.logout")> <cflogout> </cfif> <cflogin> <cfif not isdefined
We're upgrading from CF8 to CF10. One of the things I always liked about Coldfusion was that it gave some pretty detailed error messages by default, so that you could see roughly where your code was exploding at.I'm working through updating the places in the code where there's things not compatible before I upgrade on the server, but these generic error messages are pretty useless. Is there any way to get the older style of error messages back in CF10, atleast on the development machine? I'm using the built in web server.
I cannot get past the server home field. I'm using IIS as a webserver, not tomcat. I've tried C:\ColdFusion10, C:\ColdFusion10\cfusion, C:\ColdFusion10\cfusion\bin, none work. I specified jrun on the previous page but I don't see a c:\jrun folder either.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusionBuilder/Using/WSf01dbd23413dda0e1736ebc1213a528ab0-7ff8.html
if the project is not in the document root, how can I create a project in document root? Normal we create a new project in Navigator of CFB. and how to create a linked folder to the document root ?May anyone help?Thanks.
I've taken a .jar file that contains classes used with the HSBC CPI gateway - does things like hash encoding of data.It seemed to work well with cfmx7, but I had a bit of trouble getting it recognised by cf10.However, it is now recognised. I had to do the following:1) Put cpitools.jar into <WEB-INF>/lib2) Tag Name: cfx_HSBCHashGenerator, Class Name: com.clearcommerce.CpiTools.security.HashGenerator3) Restart CF (not 100% sure this is necessary)4) Call a script with <CFX_HSBCHashGenerator SharedSecret="#ss#" HashElement="#datainput#">However, I get this error message:A ClassCastingException occured. The CFX custom tag CFX_com.clearcommerce.CpiTools.security.HashGenerator needs to implement com.allaire.cfx.CustomTag interface. Ensure that you add this to your custom class.Now, I know that the .jar file was just fine in MX7. Is this a change for CF10, or is there something else going on? Thanks for any help - I'm tearing out the little hair I have over this one!
I have CF10 Developer version on my machine and CF 9 is remote server.I have CFSTOREDPROC works on CF10 local developer version, but CFSTOREDPROC does not return data on CF9 Remote server.Both CF9 and CF10 connect to the same database server and running exactly same code nad stored procedures, because it is same source code I just use Dreamweave to put 2 different web server.I would like to know any thing I can check between local and remote server using CF9 and CF10 makes CFSTOREDPROC does not return data.Your help and information is great appreciated,Regards,Iccsi,
ColdFusion is awesome for my work. I can make anything I want with it and seeing as 99% of my work is making web applications, I haven't needed to look elsewhere.I was just wondering why anyone would need to learn Java, if you already know ColdFusion... I understand that ColdFusion runs on Java, but is there anything special I could do with Java that is not possible in ColdFusion for use in websites?It intrigues me because I have to cover the work of an ASP.NET developer, and when I was looking at his C# code (which looked very similar to Java) it made me cry to think people make websites in this way. Compared to ColdFusion it looks archaic but then I remember that CF works with Java so I thought about looking into learning Java. But is there any advantage to me doing this?
I have a ColdFusion8 environment. I need to generate a sound alarm when an event occurs... is it possible ?
I'm using CF9 on windows 7 professional. when ever i execute from a form to the action page i get this error:Could not find the ColdFusion component or interface VAFOINS_NEW.Componet.display. Ensure that the name is correct and that the component or interface exists.It works fine on my local computer, however the Componet is not invoking properly when on the actual web. Any suggestions?THE CFC syntax is below:<!--- Generated by Adobe Dreamweaver CS5 11.0.4.4993 [en] (Win32) - Fri Sep 23 2011 15:56:13 GMT-0400 (Eastern Daylight Time) ---><cfcomponent displayName="volno" hint="List all FCN, NS, FOID etc. Items By way of volno input"><cffunction name="volno" returntype="query"><cfquery name="volno"> select TRIM(CONCAT(name.fname,' ',name.xholy))AS Brother, name.foiid, fcn.*, nspay.*, Foidpay.*, otherpay.*, CONCAT(otherpay.othpayamt,' - ',otherpay.othpaytitle) AS otherpay, fcnsales.salesid,(fcnsales.salesamt) AS FCN_SOLD, salesdate FROM name, fcn, fcnsales, foidpay,
Hello all,Anybody have MySql skills? Our reqular guy is out for a couple of weeks so I'm trying to help out. I am mainly a UI guy but I am enjoying CF. Ok to the question. I am trying to update a table with another table. I want to find any duplicate rows based on a particular field, replace them and then add any new rows. Here is what I have (the error that it returns is below):<cfquery datasource="square" name="loadupdates"> SELECT MLS_Id, List_Price, Public_Address, Street_Number, Street_Name, Unit_Number, City, Zip_Code, Subdivision_Name, Bedroom, Baths_Total, Full_Baths, Half_Baths, Square_Feet, Lot_Sqft, Garage_Capacity, Garage_Type, High_School, Junior_School, Property_Description, Listing_Office_Name, Listing_Office_Id, Listing_Agent_Name, Listing_Agent_Phone, Listing_Agent_Id, Short_Sale, Open_House_Flag, List_Date, Last_Image_Update, Price_Change_Date, Image_Count, Latitude, Longitude &nb
Greetings, I have a server with Windows Server 2008, IIS 7, Cf9.0.2 updated with all of the latest patches and hot fixes, multi server installation. I have 4 websites running in the cfusion instance. I want to create a 2nd CF instance and connect siteB to the 2nd CF instance. I created a 2nd CF instance and cannot get siteB to work. I get Service Unavailable when trying to hit the website. I created a test.html in the siteB's root directory and get same Service Unavailable error when I try to go to the html page. Any ideas are greatly appreciated. here is what I did to create the instance - CF admin, Instance manager, create a new instance with the option to create a Windows service - copy JRun4/bin/jvm.config to jvmSiteB.config - jrunsvc -remove {newly created service} - jrunsvc -install CF instance 2 with -config full_path_to\jvmSiteB.config - WebConfig Tool to create connector for the IIS website siteB connecting it to the newly created Windows service from 2 steps above. I checked
In RDS Configuration, Test Connection is Succeful, but I click Test DebuggerTest Debugger failL"it said : An RDS connnection was established but the ColdFusion RDS line debugger could not be contacted. The server gave the following message: Coldfusion line Debugger is not enabled."My Server is running normal, connection is OK! How to fix?
how to create a ColdFusion Page in ColdFusion Builder 2?When I type :"<cfset artistsObj = createObject("component","artistscfcs.ARTISTSService").init() /> <cfset artistsQry = artistsObj.getAllARTISTS() /> <cfdump var="#artistsQry#"/>" in an index file in my Project and lick Firefox tab beside source, it shows message: The connection was refused when attempting to contact localhost.My Server is running normal, connection is OK! How to fi
I am using a <cfinclude template="../MakeYourChoice/index.cfm"> on a page that once the coice is made the screen below will provide feedback. I just realized the <cfinclude template="../MakeYourChoice/index.cfm"> is showing up at the top and at the bottom is the next screen that should NOT show up as two screens on one page. How can I make this process as seperate pages without changing hundreds of lines of code?!? Thanks!
Hi all,This question is sort of related to a previous post of mine about querying dates. I'm trying to use a cfif statement in my where clause to determine if a field is empty or not. Here's the code:<cfquery name="GetPastEvents" datasource="DSN"> SELECT * FROM SITE:Calendar WHERE DatePart('yyyy', [StartDate]) = <cfqueryparam value="#Dateformat(Today, 'yyyy')#" cfsqltype="CF_SQL_DATE" /> and <cfif EndDate neq ''>StartDate<cfelse>EndDate</cfif> < <cfqueryparam value="#Today#" cfsqltype="CF_SQL_DATE" /> and Archive = <cfqueryparam value="0" cfsqltype="CF_SQL_INTEGER" /> ORDER BY StartDate ASC, StartTime ASC</cfquery>My issue that that CF tells me EndDate is not defined. EndDate is a field in the table SITE:Calendar. There has to be a way to make this work, no? Thanks
Hello all, I am very new to CF and our regular guy is on vaction so I could really use some help. I am getting geo location from Bing for multiple address that I have in a db. Then add the latitude and longitude to the latitude field and longitude field in the respective row I am able to run the function(s) indivulally but I need help looping through each row. Here is what I have. I hope this makes sense!<!---query the db---><cfquery datasource="square" name="ListingShort"> SELECT MLS_Id,List_Price,Public_Address,Street_Number,Street_Name,Unit_Number,City,Zip_Code,Subdivision_Name,Bedroom,Baths_Total,Full_Baths,Half_Baths,Square_Feet,Lot_Sqft,Garage_Capa
I have an issue with Cold Fusion 10 Standard. I am running it a several Windwos 2008 R2 Servers with IIS 7.5. Each time I add a new website, I have to run the Web Configuration Tool or the site will not come up unless the the path includes the default doc. I have to remove the current IIS setup and then run it again in the Web Configuration Tool to get it to work properly. This is an issue on our production servers. Any input would be greatly appreciated.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.