Re: Java and CF
Try placing the class file in the folder named classes (not cfclasses - that's where the class file versions of your cf code goes) but classes should be at the same level as lib according to my installation, which is right under WEB-INF. Also make sure that if your java class defines itself as part of a package, that you have the correct folder structure to support a call to that package. (Ex. package com.test.classA in my java source would mean that I need \WEB-INF\classes\com\test\classA.class to be the physical path, and I would instantiate it as such: CreateObject(java, com.test.classA)) Hopefully I have helped and not confused you. :) -Chris I've written a java class file I want to use in an app (just testing). but I can't figure out where to put my .class file. I tried putting it in the directory with the page calling it, then calling it createobject(java,myclass); But this errored out, not finding the class. So then I placed it in the classpath used according to the cf administrator c:\cfusionmx7\wwwroot\web-inf\lib But the same call fails in the same way, even after restarting cf. I have .jar files installed in the same directory that are working fine (JAI, JPedal, etc.), but my .class file just seems to be ignored. Can anyone give me some insight here? TIA Cutter ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228494 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
error occurred in _sl54del.cfm: line 12
I created an Access datasource called 'cfFundDB' and when I tried to submit it I got a file system cannot find the path (or something like that) error. So, I decided to cancel and upon seeing that it had created an entry for it in the datasources list, even though it was unsucessful in creating the datasource, I decided to delete it. But when I click delete, I'm getting this error on a gray screen within my cfadmin: An exception occurred when invoking an external process. The cause of this exception was that: java.io.IOException: CreateProcess: E:\snip\WEB-INF\cfusion\db\slserver54\admin\swcla.exe -l dsd 'Macromedia ColdFusion MX 7 ODBC Server' 'cfFundDB' error=3. The error occurred in _sl54del.cfm: line 12 Called from msaccess.cfm: line 56 Called from msaccess.cfm: line 39 Called from msaccess.cfm: line 1 Called from _sl54del.cfm: line 12 Called from msaccess.cfm: line 56 Called from msaccess.cfm: line 39 Called from msaccess.cfm: line 1 -1 : Unable to display error's location in a CFML template. Help? I'm using the multi-instance mode on JRun, CF 7, Win 2003 SP1 TIA!! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228607 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
writing/reading calendar data to/from MS Exchange
Hi all, I'm in the planning stage of a web-based calendar that will store its event data in a MS Exchange calendar. I haven't really looked much into the problem of reading/writing data with CF and Exchange, but I know it is something that I am going to need to do in the very near future. Has any one worked with reading/writing MS Exchange data using CF? Any leads, tips, (or warnings) are appreciated. (We're using CF 7 and Exchange 2000) Thanks in advance, Chris ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227936 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML Problem
Jennifer, You should try printing the XmlText of the node. Ex: xmlcontent.shop.stock.item[i].stockcode.XmlText Stopping at .stockcode returns a reference to the XmlNode, hence the error. But the .stockcode.XmlText contains the value you are looking for. -Chris Hi, I'm learning xml to use it within a cart application and have come unstuck. The xml file I've created looks fine. I can read it and get a count of stock items. But all of the contents I return look like [EMAIL PROTECTED] Can anyone see where I'm going wrong please? Thanks, Jenny cfscriptURLToPull = #application.siteurl#stock/stock.xml;/cfscript cfhttp url=#URLToPull# method=GET timeout=15/cfhttp cfscript XMLContent = trim(cfhttp.filecontent); XMLContent = XMLParse(XMLContent); /cfscript cfset showitems = #ArrayLen(XMLContent.shop.stock.item)# cfoutput#showitems#br #xmlcontent.shop.shopname#brbr cfloop from=1 to=#showitems# index=i #xmlcontent.shop.stock.item[i].stockcode#br /cfloop /cfoutput cfdump var=#xmlcontent# ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227240 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFCs, webservices and CFTRANSACTION
I would probably suggest leaving your CFCs with all of the cftransactions as they are, to maintain the black box characteristic. Then I would build some sort of log in the webservice that is invoking all of these other cfcs, to track what should be undone if some step fails. Throw it all inside a try/catch block and then when you have an error, throw an exception, and in your catch block, run through the undo steps. This is analogous to what the database will do when you use transactions, but since you want to do it across multiple cfcs you have to manage it yourself. Just my idea. -Chris Hey All, The setup: I have webservices that are essentially wrappers for internal CFCs. They perform some added valoidation, but essentially pass arguments through to internal CFCs. They often call multiple internal CFCs which each have a CFTRANSACTION block. The problem: I really need ALL the methods called by the webservices to either to commit the data they are attempting to or all data changes across all methods called by a webservices should be rolled back. Of course as we know you cannot nest CFTRANSACTION blocks. So whatya think I should do? I did think of removing the CFTRANSACTION blocks from the internal CFCs, but that doesn't seem right.then developers would have to know to wrap calls to the methods in those CFCs with CFTRANSACTION and that flys in the face of the black box characteristics of CFCs all you should need to know about them is their name and the arguments and associated data types (it would also mean webservice consumers could skip the CFTRANSACTION step and screw my data). TIA Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: [EMAIL PROTECTED] web: www.electricedgesystems. com ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221511 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: form generator
Matt, Thanks for the response. It sounds like your system does what I'd want, but we already have a CMS (that lacks such a complex feature), so a second CMS is out of the question. Do you know if your CMS sells this component seperately? I have envisioned what you describe in terms of a database schema. My idea was to generate some form definition, if you will, that could be then put into a cfform at runtime and rendered as either an XForm or Flash, depending on the user's capability to play flash movies. From sounds of it I'm going to have to build it myself. We are going to link a form submission to a form definition in our database so when someone needs to look up submitted data, we can know what version of which form the user was presented when they submitted the data. That's why I imagined storing a xml-like definition of the form in one table and then having it linked to many submissions. I've been working on a solution for two days now, with bits and pieces of a custom solution coming together as a result, but if there is a commerical or open-source option, I could benefit more from the time savings as I have only 2 weeks yet to get something to demo. Thanks for the information, though. If you come across anything else that might help, please let me know. -Chris ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204077 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: CFGrid Styles
Jeff, There is a style attribute for cfgrid. For example, here's one that I have played with: cfgrid style=font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; You can also refer to livedocs.macromedia.com for more help. That's been my reference thus far experimenting with these flash forms (which is quite possibly my favorite MX7 feature). -Chris The new Flash data grid looks like it will be a really nice feature. However, is there a way to style the data grid? For example, how can I change things like header colors and fonts, table colors, row colors, etc.? I don't see a style or class attribute to the tag, although that would not make a whole lot of sense since this is Flash. Also, I saw mention of Dreamweaver extensions for CFMX7 - where would I find these? Thanks -- Jeff ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:194131 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
StructFind vs. ListFind for speed
Hi. I have the option to search a structure for a key or a list for the key name. Which one yeilds the better performance? Thanks. ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183512 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Web Service error
Hello all, I have an ASP.NET web service that I am trying to invoke from a CF page. The method appears in the components section of DW if I add the web service, and I can test it ok using aspx, but I keep getting the error Web service operation registerParticipant with parameters {eventId={test},lastName={doo},status={paid},registration={registered},firstName={scooby},} could not be found. when I try to consume it via ColdFusion. The method is: registerParticipant(eventId, firstName, lastName, status, registration) with all String type arguments, and that's all I'm passing it Anyone have any leads as to what to examine? All the other WebMethod's in this asmx file are invocable without problem. Any thoughts are appreciated! -Chris ~| Get the mailserver that powers this list at http://www.houseoffusion.com/banners/view.cfm?bannerid=17 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182002 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
CC processing - where to encrypt
Hi, I'm working on a project where we are going to collect CC information and process payments on a recurring basis. This presents a number of security concerns. We're using SQL Server 2000 and CFMX on Windows 2000.Where is the place to encrypt data? In CF at the application level, or at the DBMS level?Any ideas on where and how would be greatly appreciated!Thanks in advance for your help. -Chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
MySQL cfqueryparam single quote problem
I have an application with a user login screen. Only users with apostrophes in their names are unable to log in. My database is MySQL 3.23.52 and I'm using the most recent update of CFMX.If I query for a certain record using phpMyAdmin, I see the escape sequence \' replaces all single quotes. So, I have tried manually replacing all single quotes with slash-quote. And I have tried both with and without cfqueryparam tags.Here are four scenerios that I have tested out, and the outcomes of each. 1. No escape character with single quote; using cfqueryparam - query does not fail, but no record is returned 2. Using escape character with single quote; and using cfqueryparam - query does not fail, but no record is returned 3. Using escape character with single quote; no cfqueryparam - passing it straight in between single quotes - query fails to execute due to the value passed in for the name 4. No escape character with single quote; no cfqueryparam(passing it '#strName#') - query executes and the correct record is returned However, I do not feel comfortable trusting just any user data in the last name field. I want to use cfqueryparam to prevent potential sql injections. Here is part of my query that fails: SELECT FIRSTNAME, LASTNAME FROM T_USER WHERE UPPER(T_USER.LASTNAME) = cfqueryparam cfsqltype=cf_sql_varchar value=#UCase(queryLastName)# But, this works: SELECT FIRSTNAME, LASTNAME FROM T_USER WHERE UPPER(T_USER.LASTNAME) = '#UCase(queryLastName)#' Any help is appreciated.Thanks. -Chris [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]