RE: STICKY Application.datasource

2004-12-29 Thread Martin Parry
You can most certainly store the datasource in an application variable. Assuming you have a whole bunch of app vars that you will be using throughout your application. Andrew is correct in what he is saying about using request scope as you don't need to lock the application scope EVERY time you

RE: shopping cart, session variables - best practices

2004-12-29 Thread Martin Parry
I personally favour client variables. But bear in mind that you must be using a proper DB server, NOT access for this to work. SQL, MYSQl Etc. Additionally, in CF admin the client variables must be purged in a reasonable time if SQL disk space is in short supply or you get a billion hits a day.

Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Ciliotta, Mario
Hi, I was wondering if someone on this might have experience using the SWITCH statement in JSP. I am in the process of converting a CF app to JSP (Do not ask why -- company standards for the future) and in the CF page I make use of the CFSWITCH and I looked into JSP/Java and there is also a

Re: If your CFC takes a struct, can Flash provide one via remoting?

2004-12-29 Thread Jeff Small
On Tue, 28 Dec 2004 15:24:36 -0500, Jeff Small [EMAIL PROTECTED] wrote: If one of the things you're looking forward to doing is using some methods with Flash Remoting down the line, and you made an insert() method say, that was looking for a struct (insert(myStruct) for instance) can Flash

RE: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Matthew Small
Show the JSP example also. Matthew Small Web Developer American City Business Journals 704-973-1045 [EMAIL PROTECTED] -Original Message- From: Ciliotta, Mario [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 9:55 AM To: CF-Talk Subject: Question for Java people on this

Setting Default Printer

2004-12-29 Thread Jones, Becky
Does anyone know how to set a default printer from a list of prints shown in a webpage? im using the tag CFX_EnumPrinters to enumerate the printers, but im not sure how to allow the user to pick the default. i found a script do this with vbscript, but i want to do it in a webpage: any help is

RE: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Ben Rogers
Personally I really hate the notion of chaining setter calls (but I can see way others may like it). I do find that much harder to read. But other chaining is great. Being able to chain the create and the init() together seems perfectly sound to me. As does any call which returns a

Re: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Nick de Voil
Mario Does anyone know if this can be done with the SWITCh statement in JSP. Can switch be used on strings --- I have been told yes and no by different people No, afaik the switch statement in Java needs a simple scalar type such as int or char. I suggest you use if...else if. Nick

RE: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Ciliotta, Mario
I forgot to paste it in: String dept = rset.getString(DEPARTMENT); from my Oracle Query switch(dept) { case FAO: out.println(It\'s FAO.); break; case CAO: out.println(It\'s CAO.); break; case RES: out.println(It\'s RES.); break; default:

RE: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Katz, Dov B (IT)
Java doesn't allow you to use anything other than integer (or castable to integer) values for switch statements, so strings can't be sued. With a switch that small, I recommend a series of if statements String s=department.trim().toUpperCase(); if (s.equals(FAO)) rate=0.09; else if

RE: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Ciliotta, Mario
It seems to be kind of poor not to be able to use switch on a string. If I use the dept number say (0305) instead of the name would this work or would Java freak on the 0 (zero). Our database treats these fields as varchar since the zero in front has meaning to the accounting people. Mario

Re: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Nick de Voil
It seems to be kind of poor not to be able to use switch on a string. If I use the dept number say (0305) instead of the name would this work or would Java freak on the 0 (zero). Our database treats these fields as varchar since the zero in front has meaning to the accounting people. Yes,

RE: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Jim Davis
-Original Message- From: Ben Rogers [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 10:04 AM To: CF-Talk Subject: RE: My Init() in my CFC...am I on the right track? I agree. I was only referring to setter methods (though I may not have been very clear about that). In

Re: STICKY Application.datasource

2004-12-29 Thread Jared Rypka-Hauer - CMG, LLC
Since the advent of CFMX 6.1, the Macromedia specs state (no time to find a URL, it's moving day 3) that shared-scope variables that will be set once and contain a static value (i.e. static data available to the entire app... like a DSN) do not need to be locked. Race conditions and deadlocks were

Re: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Jochem van Dieten
Jim Davis wrote: As for returning this from a setter... I never thought about it, but I might start (mine all return void now). I may personally never use it, but if it doesn't affect performance it leaves to possibility open for others that might want to. I return this from pretty much

Re: Question for Java people on this list: Converting a CF app to JS P

2004-12-29 Thread Mark Drew
I am sure you could write your own taglib to help with this, here is a tutorial for you http://www.orionserver.com/tutorials/taglibs/4.html Regards Mark Drew On Wed, 29 Dec 2004 15:19:16 -, Nick de Voil [EMAIL PROTECTED] wrote: It seems to be kind of poor not to be able to use switch on

Re: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Jeff Small
Jim Davis wrote: As for returning this from a setter... I never thought about it, but I might start (mine all return void now). I may personally never use it, but if it doesn't affect performance it leaves to possibility open for others that might want to. I return this from pretty much

RE: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Bosky, Dave
Don't break the chain of love. -Original Message- From: Jeff Small [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 11:40 AM To: CF-Talk Subject: Re: My Init() in my CFC...am I on the right track? Jim Davis wrote: As for returning this from a setter... I never thought

RE: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Ben Rogers
So am I to understand correctly...that you can ONLY chain methods that return this? Or that if your init function returns an object then all methods can be chained? I'm reading all of this conversation as the former (the first one) meaning that if you WANT to be able to chain a method, that

Re: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Jochem van Dieten
Jeff Small wrote: So am I to understand correctly...that you can ONLY chain methods that return this? Yes. I'm reading all of this conversation as the former (the first one) meaning that if you WANT to be able to chain a method, that method needs to return this. Correct. Jochem

RE: STICKY Application.datasource

2004-12-29 Thread Dave Watts
Assuming you have a whole bunch of app vars that you will be using throughout your application. Andrew is correct in what he is saying about using request scope as you don't need to lock the application scope EVERY time you want to use it. Instead you can use something like:- cflock

RE: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Dave Watts
So am I to understand correctly...that you can ONLY chain methods that return this? Or that if your init function returns an object then all methods can be chained? I'm reading all of this conversation as the former (the first one) meaning that if you WANT to be able to chain a method, that

RE: shopping cart, session variables - best practices

2004-12-29 Thread Dave Watts
Use a structure for storing the basket contents by all means, however instead of session.basketContents, convert the structure to a WDDX object and store it as client.basketContents - That way you're not using precious RAM but cheap disk space. Storing application- and user-specific data is

RE: large cf ecom sites?

2004-12-29 Thread Bryan Love
Autobytel.com is pretty stinkin big. They're CF. -Original Message- From: Emmet McGovern [mailto:[EMAIL PROTECTED] Sent: Friday, December 17, 2004 12:00 PM To: CF-Talk Subject: large cf ecom sites? I have a client that is starting to backpedal on wanting to use coldfusion for their

RE: STICKY Application.datasource

2004-12-29 Thread Dave Watts
Unless it's really necessary I would try not to set datasource as an application variable, either: cfset datasource=CODAGenomics or cfset request.datasource=CODAGenomics In general, I agree with this. If the value of a variable won't change during the operation of an application and the

RE: shopping cart, session variables - best practices

2004-12-29 Thread Dave Watts
Any reason you're not using an array of structs? It would be much cleaner to work with and much faster than using lists (which is going to have much more impact on your performance than storing data). While I agree with your suggestion to use arrays and structures rather than lists, I doubt it

RE: Setting Default Printer

2004-12-29 Thread Dave Watts
Does anyone know how to set a default printer from a list of prints shown in a webpage? im using the tag CFX_EnumPrinters to enumerate the printers, but im not sure how to allow the user to pick the default. Are you trying to set a default printer on the server or on the client? Presumably,

RE: Setting Default Printer

2004-12-29 Thread Jones, Becky
Im trying to do this on the client. I want to present them with a list of their printers and have them select which one they want as a default. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 1:21 PM To: CF-Talk Subject: RE: Setting

Re: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Jeff Small
You can only chain two methods if the first method returns an object containing the second method. If you want to chain two methods that belong to a single object, the first method needs to return the object containing that method (this). If you want to chain a third method, the second

RE: large cf ecom sites?

2004-12-29 Thread Kristopher Pilles
Recruitmax.com good example -Original Message- From: Bryan Love [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 12:55 PM To: CF-Talk Subject: RE: large cf ecom sites? Autobytel.com is pretty stinkin big. They're CF. -Original Message- From: Emmet McGovern

RE: shopping cart, session variables - best practices

2004-12-29 Thread Martin Parry
I think we should really find out the capabilities of Mayo's server/host before we can truly suggest one method over another. In high traffic eComm sites I have seen superb performance using the method described. If, however RAM is not a problem, he isn't experiencing high volumes and is not on

Re: large cf ecom sites?

2004-12-29 Thread Tony Hicks
Half.com uses some CF and they're pretty big too... Tek-tips.com is entirely CF driven and has nearly a million members and probably 4 constantly active. The simplest way to say it to the client is that the security and stability of the application is as much about the programmer's skill as

Re: CFMX ODBC problems..

2004-12-29 Thread Mark Kruger
Alexis, Did you ever get an answer to this problem? Also, do you have any experience with minisoft on 4.5 - or with troubleshooting minisoft drivers to CF Server? -Mark ([EMAIL PROTECTED]) ok here is my problem.. I had an application that worked perfectly on CF 5.0 using the Minisoft ODBC

RE: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Dave Watts
Good lord this is a lot of...ahem...stuff to remember... Fortunately, you don't really need to memorize it all as if it were a multiplication table. You just need to think about how objects, methods and properties work. For example, if you want to chain methods, you can see how things work

RE: Setting Default Printer

2004-12-29 Thread Dave Watts
Im trying to do this on the client. I want to present them with a list of their printers and have them select which one they want as a default. Well, to be perfectly honest, I think this is a bad thing to do from within a web page. The user's computer has perfectly good mechanisms to do this

RE: Setting Default Printer

2004-12-29 Thread Dave Watts
Im trying to do this on the client. Oh, and I don't think you'll be able to do this in a cross-platform way. A Windows Script solution will only work for people using Windows and Internet Explorer. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444

RE: shopping cart, session variables - best practices

2004-12-29 Thread Dave Watts
I think we should really find out the capabilities of Mayo's server/host before we can truly suggest one method over another. I wouldn't go so far as to say I was suggesting one mechanism over another. I merely pointed out that, in general, you improve the performance of web applications by

Re: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Jeff Small
We already know that the CreateObject call returns an instance of foo, which contains a method bar so we can call that. To be able to call the baz method within the chain, we can see that bar needs to return the same object instance. I wish you could see me here at my desk with that

CFHTTP

2004-12-29 Thread Robert Orlini
I have this code using cfhttp below. When it does not connect I want it to display some text reading Connection lost. I have throwOnError set to yes. What do I have to add to the code below to get it to do this? Thanks. Robert O. HWW CFhttp method=get url=http://myurl/stats.cfm; resolveurl =

Re: CFHTTP

2004-12-29 Thread Ubqtous
Maybe something like this: cftry CFhttp method=get url=http://myurl/stats.cfm; resolveurl = 1 throwOnError = yes cfcatch type=any Connection lost /cfcatch /cftry On Wed, 29 Dec 2004 15:16:32 -0500, Robert Orlini [EMAIL PROTECTED] wrote: I have this code using cfhttp below. When it does

FB4 prefuseaction postfuseaction hang server

2004-12-29 Thread Troy Murray
I'm sure I'm missing something simple here, but I can't seem to figure it out although I have found a work around. I currently have one circuit named admin that I'm using. Below is the circuit.xml file: circuit access=public prefuseaction /prefuseaction fuseaction name=list do

Re: FB4 prefuseaction postfuseaction hang server

2004-12-29 Thread Brian Kotek
Are you sure you aren't creating an endless loop by running something in the prefuseaction that, when it runs, tries to run a prefuseaction again, and again, etc? Hope that helps. We use prefuseactions in many places so they do indeed work. On Wed, 29 Dec 2004 15:27:18 -0500, Troy Murray [EMAIL

500 - Internal Server Error

2004-12-29 Thread Duane Boudreau
Hi All, On my dev laptop lately I am getting 500 - Internal Server Error when ever I display a page with a ColdFusion error on it. I am running CFMX, WinXP Pro and the Dot Net framework. Any ideas why this might be happening and how to fix? Thanks, Duane

RE: 500 - Internal Server Error

2004-12-29 Thread Ben Forta
Duane, go to the CF Admin and turn of HTTP status codes, then you'll see the real error (instead of the generic 500). --- Ben -Original Message- From: Duane Boudreau [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 29, 2004 4:44 PM To: CF-Talk Subject: 500 - Internal Server Error

RE: 500 - Internal Server Error

2004-12-29 Thread Dave Watts
On my dev laptop lately I am getting 500 - Internal Server Error when ever I display a page with a ColdFusion error on it. I am running CFMX, WinXP Pro and the Dot Net framework. Any ideas why this might be happening and how to fix? I have no idea why it's happening, but you should

Possible contracting opportunity

2004-12-29 Thread Mark A Kruger
I'm looking for someone in or near the Chicago area with experience in CF 4.x connecting to an HP e3000 using minisoft ODBC drivers. If anyone is out there like that contact me off-list. -Mark Mark A. Kruger, CFG, MSCE www.cfwebtools.com www.necfug.com http://blog.mxconsulting.com

splitchr is undefined

2004-12-29 Thread Tim Do
Hello all, I've been running into this js error recently. I noticed when this occurs is when I use cfform. Has anybody seen this error before? Thanks, Tim ~| Special thanks to the CF Community Suite Gold Sponsor -

cfapplication/clientvariable Error after Upgrade to MX 6.1

2004-12-29 Thread Dave Phillips
Hi all, I just upgraded to MX 6.1 and now I'm getting this error: The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code. Null Pointers are another name for undefined values. The error

Re: cfapplication/clientvariable Error after Upgrade to MX 6.1

2004-12-29 Thread Cameron Childress
Long shots, but since the error is in your cfapplication tag I would go into the administrator and make sure both application and session variables are enabled (Server settings Memory Variables). If that doesn't work, you might also try clearing the cookies out of your web-browser. It's another

RE: shopping cart, session variables - best practices

2004-12-29 Thread Dennis Powers
In high traffic eComm sites I have seen superb performance using the method described. There are plenty of reasons why you might choose Client variables or other database storage over Session variables. To expand on Dave's statement the times you would want Client variables over memory

Re: shopping cart, session variables - best practices

2004-12-29 Thread Sean Corfield
On Wed, 29 Dec 2004 18:27:31 -0500, Dennis Powers [EMAIL PROTECTED] wrote: To expand on Dave's statement the times you would want Client variables over memory (session) variables for storage is when the application needs to operate in a cluster of web servers. Sharing memory (session)

Re: FB4 prefuseaction postfuseaction hang server

2004-12-29 Thread Sean Corfield
On Wed, 29 Dec 2004 15:27:18 -0500, Troy Murray [EMAIL PROTECTED] wrote: I currently have one circuit named admin that I'm using. Below is the circuit.xml file: ... I can run this just fine in my application, no problems. Now if I take the do action=admin.footer / for example out of the

RE: shopping cart, session variables - best practices

2004-12-29 Thread Ben Rogers
To expand on Dave's statement the times you would want Client variables over memory (session) variables for storage is when the application needs to operate in a cluster of web servers. Sharing memory (session) variables then become impracticable. Session state stored in client variables

Re: My Init() in my CFC...am I on the right track?

2004-12-29 Thread Sean Corfield
On Wed, 29 Dec 2004 13:18:43 -0500, Jeff Small [EMAIL PROTECTED] wrote: Good lord this is a lot of...ahem...stuff to remember... Yeah, that's why it takes most folks years to become 'fluent' in OO design... Where's a good reference for ALL of this conceptual stuff? Not the syntax, or what you

OT: Tomcat/servlets issues with config (i believe)

2004-12-29 Thread K0rneliuz Van Strauss XIV
I have dir structure: ROOT beer form.html WEB-INF web.xml classes com example web BeerSelect.class my web.xml file is as follows: servlet servlet-nameBeerTest/servlet-name

Re: Setting Default Printer

2004-12-29 Thread Paul Hastings
Jones, Becky wrote: Im trying to do this on the client. I want to present them with a list of their printers and have them select which one they want as a default. not with CFX_EnumPrinters you aren't, it's for server side.

Re: FB4 on CFMX problem with set

2004-12-29 Thread Duncan I Loxton
It seems that the set was working fine, then at the end of the true I was doing relocate url=#myself#events.listamp;tk=#attributes.token# addtoken=yes type=client / and this seems to be wiping out any request variables. I replaced this with a do action=events.list / and the dump show

RE: Thread-safe CFCs

2004-12-29 Thread Adrian Lynch
I think the mail you got saying your post was to long is just a warning, it still goes through. Is this right Mike? Ade -Original Message- From: Sean Corfield [mailto:[EMAIL PROTECTED] Sent: 26 December 2004 03:55 To: CF-Talk Subject: Re: Thread-safe CFCs Because cf-talk doesn't allow

Re: FB4 on CFMX problem with set

2004-12-29 Thread Sean Corfield
On Thu, 30 Dec 2004 12:21:44 +1100, Duncan I Loxton [EMAIL PROTECTED] wrote: By using the relocate does FB wipe the request out and assume its a new one? Why would this be happening? relocate .. type=client/ stops execution of the current event and sends a redirect command back to the browser,

cfmail and exchange server

2004-12-29 Thread Ken Ketsdever
The operations side of the house has recently built a windows 2000 server with exchange server 2000. Its an outsourced box at a server farm in Texas (good place for a farm). I've written a simple piece of code that creates a maillist with my email address 1,000 times. cfset maillist =

Re: Thread-safe CFCs

2004-12-29 Thread Michael Dinowitz
Yes.A long post will ALWAYS go through. The warning (which will be lengthened to 150 lines) is to remind people to trim their posts. In addition, the first post on a thread is always unlimited. I think the mail you got saying your post was to long is just a warning, it still goes through. Is