Questions
Als letztes aktiv
we are facing an issue while configuring the external apche web server to work with coldfusion 9
I have a form filed and need to make sure that there is not URL's being passed through it. I would like to search the field and test it for "http" and/or "www", if those charters are present I would like to send it to a special page that handels it and then abort the rest of the script.Can anyone help me with this?Thanks!Nick
I need help searching one of my form fields for any URL’s that are being passed to my list.In the form field I am receiving content that looks like the following:nhiccdppqfstupxo, <a href="http://.com/">abc</a>, abc, abc, http://.com/ abc, abc bz.I need to use a RE function to check the form field for “http” and if it’s there abort the script so that it doesn’t send out to my list.The problem I am having is that when I use CF functions I receive an error because of the quotes that are in the form field. Anyone have any ideas as to how I can test for URL’s in a form field?Thanks for any help that you can offer! CTownNick
Hello,I have a simple form thatI'm binding query data to so I can populates a cselect box and, based on the selection, populate cfinput boxes. I have the code for this form in a <cfinclude template> and it is working just as designed.But strangely enough, if I wrap the <cfinclude> code that contains my form in <cfdiv> tags, the binding breaks.What would be causing that? Any help would be super greatly appreciated.-BrianMain Page Code with form:<cfajaximport tags="cfform,cfdiv"> <cfdiv> <cfinclude template="vehiclelog.cfm"> </cfdiv>CFInclude File: <cfform name="addmileage" method="post" action="actionpages/addmileage.cfm"> <table cellpadding="10"> <tr><td> <fieldset>
I am trying to pass two parameters through URL in XSLT file by using ColdFusion.This is my XSLT code:<xsl:template match="/"> <xsl:text>Actors: </xsl:text> <xsl:apply-templates select="/movies/movie/actors/actor/name"/></xsl:template><xsl:template match="name"> <xsl:element name="a"> <xsl:attribute name="href">actor_details.cfm?movieID=<xsl:value-of select="../../../@movieID"/>&actorID=<xsl:value-of select="../@actorID"/></xsl:attribute> <xsl:value-of select="." /> </xsl:element> <xsl:element name="br" /></xsl:template>This is my actor_details.cfm file<cfset MyXmlFile = Expandpath("test.xml")><cffile action="READ" variable="xmlInput" file="#MyXmlFil
This problem keeps popping up, I did some updates & patches, even upgraded java, nothing seems to help. I used to be able to restart coldfusion & the problem would go away.... that's not working today.I get the error only on specific pages, all others will be fine, ~usually~ it's the same page that will throw the error.The error will also show up if the template is completely blank, not even cfoutput tags & I still get the error.Also - one of the pages that is affected is the Java & JVM page of the administrator...Anyone have any ideas what is happening & how to fix this?500ROOT CAUSE: java.lang.NoClassDefFoundError: Could not initialize class org.apache.bcel.util.SyntheticRepository at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:110) at org.apache.bcel.classfile.JavaClass.<init>(JavaClass.java:229) at org.apache.bcel.generic.ClassGen.getJavaClass(ClassGen.java:230) &nbs
I need to add a cfqueryparam in cfquery like following. I want to know can I add if statement in cfqueryparam<CFQUERY NAME="MyQuery" DATASOURCE="MyDataSource" USERNAME="MyUser" PASSWORD="MyPassword"> SELECT * FROM MyTable WHERE MyField in <CFQUERYPARAM VALUE="#Trim(form.myText)#" > </CFQUERY>I want CFQUERYPARAM VALUE = 1,3,5 when my Check box1 is checked by user and CFQUERYPARAM VALUE = 2,4,6 when my check box2 is checked by user.Is it possible to use an if statement or switch in CFQUERYPARAM to set value base on the check box on the form?Basically, I need following SQL Select * from MyTable where MyField in (1,3,5) when check box 1 checked on the formSelect * from MyTbale where MyField in (2,4,6) when check box 2 checked on the formYour help and information is great appreciated,Regards,Iccsi
As I am new to all of this and learning on the go, please forgive me if my question and example below seems rather...lame. But I am trying to set a cookie on the host (a CF server), rather than in a domain via the client (Websphere containing my jsp), which I could do via javascript in a jsp, but I can't really do that, since I need this particular cookie to be set on the host, by the host, with since the other cookies being set on the host by the CF application running there, are of course, also set on the host. I also cannot do this as an argument to a URL for security reasons. It is a unique user identifier that I'm passing to the other side. So in my mind, setting this information in a session variable seems like my best option to get it over to the other side. Unfortunately, I lack experience working with CF to understand the correct syntax for this, and so in my jsp I've coded this: session.setAttribute("cf_varname","cf_varvalue"); and in the Cold Fusion function I now have: But
HI,I'm running CF 9.Because I have sub domains, I have to write the session cookes manually in my application.cfm, otherwise we lose session variables as we cross sub domains. (does not happen in Firefox but does happen in IE, Chrome, Safari)But these manual written session cookies cause other problems so I really need to let CF write the session cookies.The problem is that I need the domain to have the dot in front of it, and CF default is to not use the dot:i.e. in my manual cookies I set the domain to ".mydomain.com"But if I let CF write the session cookies, it defaults to "mydomain.com" with out the dotIs there a way to tell CF to use the dot vesion when it writes cookies?I do have multiple sites on this server, so if I change something in JRUN, it has to be domain specific and can't apply to all the domains on this web site.So I am looking for something I can add in a application.cfm or application.cfcHere is what my manual session cookies look like: <cfcookie name=
Hi,I have been told that if the user brings up two instances of the application and they bring up record in a one instance an another record is brought up in the other instance that some how the information from one instance will move to the other instance and the original data in the other instance will disappear.I have not heard of this happening in Cold Fusion.Has anyone heard of something like this?Mike
Hi all,I have a series of records stored in an Access table, each of them including a date/time. I am attempting to output my records grouping them on my date/time column, but because each time is unique, I get a separtate group for each record. Is it possible in my CF query to eliminate the time and just pull the date info? If so, how? For example, I want all records dated 3/15/2013 to be grouped, instead of 5 different records for 3/15/2013 grouped 5 different ways because of their varying times.Thank you in advance!
Finally broke down and have retired HomeSite+. Not sure that is a good idea though... A few things are bugging me about ColdFusion Builder 2 such as:I have auto indent turned on for tabs only and a tab is set to 3 spaces wide. I have done this in every editor setting under Preferences (ColdFusion, General, HTML, and Java) yet if the line I am working on has more than one tab as an indent every time I press return I get 3 spaces in place of one of the tabs. How do I make that go away???In my CFML Formatting Profile I have Tag Case and Attribute Case set to upper case yet they always show up lower case. How do I fix that?More often than not when I type a closing angle bracket on a line (>) the ending tag does not appear, and when it does it is always lower case and not upper case.Now I remember why I stuck with HomeSite for as long as I did. It worked the way it was supposed too!!! 😮Seriously, I know these are trivial types of things but I am pret
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7962.html
I cannot get a pdf variable stored into my database if the pdf file was created by ColdFusion9 itself. I can if the pdf file was created by some other application. My cf generated pdf file opens in adobe readrer just fine, writes to the dis just fine etc.Is there some difference in the way cfpdf works in cf10 vice cf9 which resolves that or am I the only one having this trouble?ThanksMike Besemer
Hi all. I'm novice and would like to use cfselect to populate a drop-down list with a query but I haven't been successful so far, can someone tell me what I'm missing?It's a financial application and I just need a drop-down of accounts (like 'utilities,' 'supplies,' etc.) . . . The code I'm using is:<cfselect name="formCategory" cfquery="categories" value="category"></cfselect>But it doesn't work. (Sorry, I can't see the error message because I'm using a shared server and the specific message doesn't display.) My 'categories' query is a very simple list of the account names with the column name 'category'.Why isn't this working?Thank you.
I am unable to create a secure datasource connection in CF10. I am familiar with setting up secure datasources. I have been setting them up since version 6. In CF10, I have tried the JTDS driver, Microsoft JDBC driver, and built in driver with no success. The datasources always verify correctly, but I can't do any queries without getting an exception. The CF exception is coldfusion.tagext.sql.QueryTag$DatabaseQueryException: Error Executing Database Query. Looking at the logs from the MSSQL server i see this message..."The prelogin packet used to open the connection is structurally invalid; the connection has been closed.". I have tried JDBC drivers that worked on CF9 and I have tried downloading the new JDBC drivers. Has anyone else been able to created an encrypted datasource connection in CF10? I installed using the secure profile option and it is the Enterprise version of CF.
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WS33331E6A-B64C-4089-8A41-AEB3A4133D59.html
Oracle has released the final Java 6 Update 39 last week, marking the end of support for Java 6. Adobe has stated multiple times that Java 7 would be supported before EOL, yet it has been a week and still no patches or update. Does anyone have an ETA when Java 7 will be officially supported?References:Java version support [http://forums.adobe.com/thread/975438 | http://forums.adobe.com/thread/975438]Java 7 support for ColdFusion <a class="jive-link-external-small" href="http://blogs.coldfusion.com/post.cfm/java-7-support-for-coldfusion" rel="nofollow" target="_blank">http://blogs.coldfusion.com/post.cfm/java-7-support-for-coldfusion</a>What's the situation with #ColdFusion and Java 7, Java 6 updates, Windows 8, and OS X Mountain Lion? [http://www.carehart.org/blog/client/index.cfm/2012/12/12/java_7_and_6_updates_and_Win8_and_MtnLion | http://www.carehart.org/blog
I am dumping obj = entityloadbypk('teams', 1) - http://i.imgur.com/B2Vp3qn.pngHow would I remove a particular email address? If I try email = entityloadbypk('emails', 1), then obj.removeemail(email), I get an error that says "Column 'team' cannot be null".What exactly should I pass to this argument?
Hello,How can I make my form not submittable if the Javascript is disabled? The form uses CFFORM and the validation page does the following: <cfif name EQ "">Error<cfelse>Ok</cfif>.How can I prevent the form from getting submitted if a user disables Javascript?Thanks for your help!
I run the page and it takes more than 30 mins to run and finally i got error below. What it's mean and what can i do?JRun Servlet Error 500 nullThanks
I am fairly new to CF so forgive my ignorance. If someone could just point me in the right direction, I would appreciate it.I have installed CF10 with the mandatory update on Windows 2008 r2 server.System Information Server Details Server Product ColdFusion Version ColdFusion 10,283111 Tomcat Version 7.0.23.0 Edition Enterprise The updates page does not work when I click "Check for Updates"The update log is showing:Feb 18, 2013 1:42 PM Error ajp-bio-8012-exec-5 CFADMIN Not able to connect to Update Site: Connection Failure: Status code unavailable Is there something that I need to configure in CF to get the updates to work properly? Otherwise, where can I download Hotfix 7 from to install in manually?Thanks
CF9 - I'm using a cflayoutarea within cflayout, then inside of that I have a cfform for login. When I submit my cfform it loads my login page (submitted) inside of the cflayout window, which I don't want. I've tried using target _blank, _parent, etc but it changes nothing. If I use plain old form instead of cfform with target _parent, it works fine. So does something within cfform clash with cflayout or cflayoutarea that I don't know about?
While testing CF10 before upgrading the production system I encountered following issue:When trying to create an COM-Object I get the exception 0x80040154 - Class not registered.This happens on Windows 2008 (32bit) after upgrading from CF9 to CF10.With CF10 on Windows 2003 R2 32bit there are no problems accessing COM, neither with CF9 on w2k8 32bit.The error message is not appropriate, it comes out with any class e.g. CDO.Message, and the classes are definitely registered and can be accessed e.g. from local scripting.I've read about problems with 64bit OS, but never about 32bit.Any ideas? Thanks for help
I saw that CF10 installer now supports windows8, so I reinstalled my computer and installed coldfusion 10. After installing, everything worked just fine and CF ran without issue. After restarting the computer, however, the appication server service refuses to start up. I've reinstalled CF twice with the same results. Here is the error in event viewer:"The ColdFusion 10 Application Server service terminated with the following service-specific error: The operation completed successfully."and this is the error in the popup that you get when you try and start it up: "Windows could not start the Coldfusion 10 Application Server on Local computer. For more information, rreview the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to the service-specific error code 0."Any help would be appreciated. I'd hate to have to completely reinstall back to Win7.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.