Code inside the cfcomponent tag, but not inside a cffunction is executed when the component is initialized. You can make a very good argument that this is not a constructor since it isn't a method, but no one ( at least not yet ) has dictated why using this method is considered bad. Having no code, would be akin to having a blank constructor.It's not bad. I do it all the time in Java. For example the following...
public class Foo { private String bar = "foobar";
public Foo() { // do something } }
The private string bar will most certainly be created prior to the constructor being called.
-Matt
---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]