Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread James Holmes
Does that have anything to do with this?

http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403432

On Wed, Jun 18, 2008 at 6:02 AM, Kenton Gray <[EMAIL PROTECTED]> wrote:
> I am 99% sure coldfusion 8 has as massive JNDI bug, which makes me think 
> no-one is using this feature. Any statement that uses query parameters with 
> JNDI will fail with a ClassCastException.

> This is a straight up screwup if you ask me. If  the connection is a 
> JRunConnectionHandle then supportsGeneratedKeys is set to false. If 
> supportsGeneratedKeys is true then they brilliantly cast it to a 
> JRunConnectionHandle.

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307653
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfc question...

2008-06-17 Thread Mike Kear
[A]   One of the good things about cfcs, and its also quite confusing
to the beginner, is that there are several ways to code most of the
things you want to do.

For example, to pass in variables to a method,  you can do it this way:


Or


(In the second case you have to make sure that the name of the
variable being passed in is exactty the same as the argument name at
the top of your method)

The first way of doing it, is less typing, but it requires that you
pass in the arguments in the exact order you have them listed in the
function of your cfc.

If you call the method like this:


then you have to make sure your method in the cfc is written so that
it doesnt fall over if there is no argument passed in.   Normally
you'd give the argument a default value like so:



So if you try to run the method without giving it an agentID, it'll
run using '333' as the value of agentID.

[B] passing in the DSN: if you put your dsn into the application
scope, as in   then your cfc will
work, by simply calling up a query as follows:


SELECT whatever, whatever2, whatever3, FROM tablename


That will work.  But it's considered bad practice, because it is
requiring your cfc to know about the application scope.  If you move
your site around or rebuild some of it ,   you might not have the
datasouce in the application scope any more.(yes i know, I konw -
these are things that hardly ever change, but trust me, this is
definitely good advice)

Instead, you should make sure that your CFC doesnt need to know about
anything in the whole world, apart from what you tell it.  This might
seem a bit esoteric when you're talking about just a datasource name,
but i have build cfcs with 60 or 70 variables they depend on.   Making
sure those puppies are all corralled and in a nice neat row when the
cfc is called is a bugger of a job if they're called from application
scope or request scope.  I found by using that method if i changed
anything in the request scope lots of things broke all around the
place.Instead, i now use a configuration cfc and pass that into
all the cfcs that need any configuration info (one day we'll talk
about how easy it is to let ColdSpring take care of all that for you!)
 and if i change any of the configuration structure, all i have to
make sure is the configuration cfc works correctly and everything else
will work.

So in short while it's not so vital now,  it will become vital one
day.  So just get into the habit of never requiring a cfc to know
anything about its environment.   You'll tell it what it needs to know
when it's instantiated.

So therefore,  if you have your datasource name stored in an
application. variable called application.dsn,  you'd instantiate the
cfc at the top of any page that uses it like this:



[C]  multiple uses of your CFCs.

You are having multiple subdomains arent you?  One for each of your
sales agents. This screams out to me that you're going to have a lot
of similar sites.   That means you're going to be having the same code
in multiple places.  It would be good to see if you cant have the cfcs
in a central place, and available to all the subdomains.That way
you're re-using the code.  That's a good thing becuase there's less
maintenance for you in the future, easier mainetnance,  more
reliability because you dont have dozens of copies of the same
queries, functions etc all over the place.If you can manage to put
your cfcs in a common folder, and available to all the subdomains
you'll make life a LOT easier for yourself in the long run.
Remember that getAgentName() is going to be the same for one agent as
another.   also getAgentCommission() or getAgentSalesAwardBonus()
methods are going to work the same for everyone.  If you have 30
agents to build sites for, you dont want to have 30 copies of those
cfcs scattered about.   What if you make a change to something and
amend 29 of the cfcs and forget one?   If they all share the same cfc,
then change it once and it's changed on all your subdomains.

So here's a site layout i suggest you try:

e:\inetpub\webroot\c21ar\components  (<-- stores al your components,
organised into subfolders if necessary.)
e:\inetpub\webroot\c21ar\components\agents
e:\inetpub\webroot\c21ar\components\admin
e:\inetpub\webroot\c21ar\components\listings
e:\inetpub\webroot\c21ar\components\utilities


e:\inetpub\webroot\c21ar\subdomain1
e:\inetpub\webroot\c21ar\subdomain2
e:\inetpub\webroot\c21ar\subdomain3
e:\inetpub\webroot\c21ar\subdomain4


WIthout playing around with it, I'm not sure exactly how this would
impact your instantiating your cfcs.  you might need to get a mapping
pointing to e:\inetpub\webroot\c21ar\components   It all depends if
your web server will treat the webroot in a page called in your
subdomain as   e:\inetpub\webroot\c21ar\subdomain1  or
e:\inetpub\webroot\c21ar  . But if your web server treats the web
root as e:\inetpub\webroot\c21ar, then no matter which subdomain a cfc
is called from, you'd call it like t

Re: built-in javaloader? (was Re: Deviceatlas and ColdFusion)

2008-06-17 Thread denstar
On Tue, Jun 17, 2008 at 7:26 PM, AJ Mercer wrote:
> something like this
>http://javaloader.riaforge.org/

[almost] Exactly!  =]

There are some problems with classloading, and some of it can be
addressed via code, but I think some of it is just inherent to the
nature of the beast.

I actually don't know what CF could do to alleviate the problems.
Some crazy servlet, maybe?  :-P

As I get deeper into the beast, I'll holler if I find something.  Ha
ha.  (Firing up random JVM instances just won't cut it.)

-- 
Why do I ask questions like this?  They're not very well-formed...

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307651
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessibility testing

2008-06-17 Thread denstar
Oh hell, I'm not thinking at all.

You could leverage the same libraries that parse things looking for
alt tags and whatnot in live code, in some type of ANT process, I bet!

I'm pretty sure something like jTidy or whatnot could get a good bit
of the no-human-mind-needed type stuff.

I think part of the problem is that you need a real person to assign
value to various bits and whatnot.  At least at some level.
:D

-- 
Wang Chi: You ready, Jack?
Jack Burton: I was born ready.

On Tue, Jun 17, 2008 at 8:15 PM, denstar <[EMAIL PROTECTED]> wrote:
> On Tue, Jun 17, 2008 at 7:19 PM, James Holmes wrote:
>> How would selenium help with accessibility testing?
>
> It parses the DOM, has a standard way of interacting with it, and it's
> automatable?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307650
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessibility testing

2008-06-17 Thread denstar
On Tue, Jun 17, 2008 at 7:19 PM, James Holmes wrote:
> How would selenium help with accessibility testing?

It parses the DOM, has a standard way of interacting with it, and it's
automatable?

That's about all I got.  *g*

Guess regression testing is all that's good for, tho.  And I don't
even know how it handles the tab key, if at all.

Yeah, on second thought, I guess that was a no-go.  =]

Maybe something like neuromancer or whatever, that captures and plays
back the whole deal would work?  For regression testing, at least?

Hmm... haven't really dedicated my "out of the box" thinking skills to
the problem.  :P

There is a nifty solution to every problem, that much I'm pretty sure of.

-- 
pretty sure.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307649
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Looking for advice on permissions

2008-06-17 Thread denstar
You know, I've been struggling with this too.

Not really struggling, as, hell, you can code up something that will
work for one set of variables pretty easy, but making a general deal
that's flexible and whatnot?  Harder.

I'm leaning pretty heavy towards AOP and business object level permissions.

As in, "this person has these rights to these functions".  I'm not
sure about overhead, and you *really* want the condensed spring format
for doing AOP (I can't wait till that's officially in ColdSpring) but
it's the finest you can get.

I like to get as fine as possible, and then do a bunch of "global"
type deals so you don't always have to drop to that fine level of
detail (real PITA with hundreds of objects).
The nice thing is that you can get the function map right from the
live code, so part of what needs to be documented/stored is coming
from the same stuff that needs to use it, which is nice.  That "single
point of reference" deal.

Of course, now I"m wondering if I can do something like Hibernate does
for when you change the database model (it'll automatically try to
change the database to keep it in sync, if you so choose) when I
change functions around and whatnot.

The other thing I've done that was easy but not as portable, was to
use a framework to access the model, and then do all the authorization
on the framework events.
With MG this isn't too bad, and you can even crawl through stuff to
get the available event names from the code itself.
But it breaks down at that fine-grained control level.  You end up
with multiple events and duplication or complicated inheritance
schemes, etc..

I've been diddling with object-based AOP authorization POCs for a
while, but I'm not quite "there" yet.  Something's always not quite
flexible for case X, or case Y, or the syncing sucks, or some-such.

I'll holler if I find that magic bullet.  The all in one, nimble
fighter, long-range bomber deal.  It does happen, every once in a
while.

-- 
Jack Burton: Just remember what ol' Jack Burton does when the earth
quakes, and the poison arrows fall from the sky, and the pillars of
Heaven shake. Yeah, Jack Burton just looks that big ol' storm right
square in the eye and he says, "Give me your best shot, pal. I can
take it."

On Tue, Jun 17, 2008 at 4:51 PM, Mike Kear <[EMAIL PROTECTED]> wrote:
> Thanks for your suggestions Claude.   Perhaps i should give you a bit
> more background to this project.   Just to clarify, the scenario is
> about the opposite to the one you are puzzled by.   I see the
> circumstances where we might want to allow someone to edit content,
> but for safety's sake not delete it or add new content.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307648
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread denstar
On Tue, Jun 17, 2008 at 4:02 PM, Kenton Gray <[EMAIL PROTECTED]> wrote:
> Good and very bad news,
[...]

Hey, good work on figuring out how to dynamically create the DSN at least!

It would have taken 100s of hours of me dumping around randomly to
figure that out!  =-]

Funny thing is, I've been using JNDI for a while, but not really
within CF proper.  Your question prompted me to try to create a "real"
DSN for the first time with it, but I didn't try doing any
cfqueryparamed queries.  Go figure. :-P

I know how that tunnel vision is when working on a real stickler,
sorry it didn't end as fruitfully as you'd like.

But hey, the CF coders know exactly where to start!  :-)

>From my experience, they're a good bunch, so I wouldn't think they'd
give you a hard time about your research-- but Dave is quite the voice
of reason, neh?  Sound, he is.  's Advice is too.  Sometimes, (sadly)
it's not the cool people in charge of what goes down.  Probably pretty
rare for the cool people to be in positions of power, actually.

Probably because cool people would rather NOT have the responsibility.
I think we should FORCE cool people into positions of power.  Yeah,
that's the solve!

*cough* Um... I'm rambling now, aren't I?

-- 
Jack Burton: [tapping on the walls] Two, three feet thick, I'll bet.
Probably welded shut from the outside, and covered with brick by now!
Wang Chi: Don't give up, Jack!
Jack Burton: Oh, okay, I won't, Wang! Let's just *chew* our way outta here.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307647
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: built-in javaloader? (was Re: Deviceatlas and ColdFusion)

2008-06-17 Thread AJ Mercer
something like this
http://javaloader.riaforge.org/


On Wed, Jun 18, 2008 at 9:18 AM, denstar <[EMAIL PROTECTED]> wrote:

> On Tue, Jun 17, 2008 at 5:15 PM, Dave Watts wrote:
> 
> > In either case, after adding your Java file to the appropriate directory,
> > restart CF.
>
> Would some sorta built-in classloader for CF be pie-in-the-sky type
> dreaming?
>
> I'm thinking, due to the nature of classloaders and whatnot, that it
> probably is, but it *sounds* nice.  :-)
>
> -Denny
>
> --
> Gracie: I'd go with you but...
> Jack Burton: I know, there's a problem with your face.
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307646
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Accessibility testing

2008-06-17 Thread James Holmes
How would selenium help with accessibility testing?

On Wed, Jun 18, 2008 at 9:13 AM, denstar <[EMAIL PROTECTED]> wrote:
> I think it would be a safe bet that 98% of us should be testing
> more... I know I should do it more often.
>
> perhaps some type of automated deal, as you suggest... h
> selenium maybe?  Hmmm...

-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307645
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


built-in javaloader? (was Re: Deviceatlas and ColdFusion)

2008-06-17 Thread denstar
On Tue, Jun 17, 2008 at 5:15 PM, Dave Watts wrote:

> In either case, after adding your Java file to the appropriate directory,
> restart CF.

Would some sorta built-in classloader for CF be pie-in-the-sky type dreaming?

I'm thinking, due to the nature of classloaders and whatnot, that it
probably is, but it *sounds* nice.  :-)

-Denny

-- 
Gracie: I'd go with you but...
Jack Burton: I know, there's a problem with your face.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307644
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Accessibility testing

2008-06-17 Thread denstar
I think it would be a safe bet that 98% of us should be testing
more... I know I should do it more often.

perhaps some type of automated deal, as you suggest... h
selenium maybe?  Hmmm...

Anyways, I usually use the plugins for Firefox, or else the sites themselves.

I quick google will get you those tho.

No nifty info for developer based whatnots besides manually initiated
checking from me, sorry.

Part of the problem used to be the standards themselves, but that's
gotten MUCH better IMO (and I'm *no* expert).

Let us know what you find out, if anything, please?

Thanks

On Tue, Jun 17, 2008 at 4:25 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Does anyone have any experience using developer-based accessibility solutions 
> such as HiSoft's AccSoft, specifically with ColdFusion sites?
>
> If not, how do you test?  Do you test?
>
> Thanks~

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307643
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Catching a web service error?

2008-06-17 Thread Will Tomlinson
I'm workin on a page where I have to geocode a location, using the geocoder 
webservice. 

Will try/catching it be enough? How do I handle it if the web service is down? 
I don't want the whole thing to bomb out. 

Thanks,
Will 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307642
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Looking for advice on permissions

2008-06-17 Thread Jim Davis
> -Original Message-
> From: Mike Kear [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2008 6:52 PM
> To: CF-Talk
> Subject: Re: Looking for advice on permissions
> 
> Thanks for your suggestions Claude.   Perhaps i should give you a bit
> more background to this project.   Just to clarify, the scenario is
> about the opposite to the one you are puzzled by.   I see the
> circumstances where we might want to allow someone to edit content,
> but for safety's sake not delete it or add new content.

For what it's worth we see this all the time.

(Some) people can edit content or remove it from view (effectively "deleting
it"), but only a select very few people can actually delete content.

This is due, in our case, to SOX laws and accountability: you can't delete
any content (EVER!) unless that content has been fully reviewed by legal
first.  In practice this means that content is essentially never deleted
(although we sometimes delete content that never actually made it to the
public site for some reason).

In case it's not clear this also means that all content management must be
source controlled and we must be able to "show the content as it appeared
publically at any point in its lifetime".

The Law... it's a bitch.

> Also i have a current need at a radio station to allow the sports
> people to work on the sports part of the site, but not touch the
> programming pages.  We want to let the people working on one radio
> show to be able to update their page - add, edit and delete content,
> but only from their page.I dont want to let them accidentally (or
> deliberately - egos are huge at a radio station!) interfere with any
> other show's content.

Similarly we used to host agency sites for detached brokers.  It would be
(literally) criminal to allow one broker to edit the content of another's (a
competitor's) site.

I don't have any real suggestions... just commiserating that these
situations do exist.  ;^)

Jim Davis



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307641
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Updating Multiple records while avoiding evaluate

2008-06-17 Thread Josh Nathanson
It'll work as long as that key "grp_sort_2201" is defined in the form.

Try dumping your form and make sure that key exists as you expect.

-- Josh

- Original Message - 
From: "Les Mizzell" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Tuesday, June 17, 2008 4:51 PM
Subject: Updating Multiple records while avoiding evaluate


> This should work in a query that updates multiple records, right?
>
> grp_sort =
>  value="#form['grp_sort_' & myIDX]#"
>  cfsqltype="CF_SQL_INTEGER" >
>
> "Element grp_sort_2201 is undefined in a Java object of type class
> coldfusion.filter.FormScope referenced as"
>
>
> Maybe I just need a nap...
>
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307640
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Updating Multiple records while avoiding evaluate

2008-06-17 Thread Les Mizzell
This should work in a query that updates multiple records, right?

grp_sort =


"Element grp_sort_2201 is undefined in a Java object of type class 
coldfusion.filter.FormScope referenced as"


Maybe I just need a nap...


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307639
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread Kenton Gray
>You're right about that, I think. I rarely see them used. Are you running 8,
>or 8.0.1? If the latter, you should report it as a bug.

This is 8.0.1, and I have filed a bug.

>I recommend that you avoid posting the results of decompiling commercial
>closed-source products to a public list.

My apologies on that, I got quite wrapped up in the problem and didn't even 
think about any legal ramifications.

Thanks Dave for all your help on these issues! Even if this was fixed I can 
only imagine there are more around the corner 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307638
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Deviceatlas and ColdFusion

2008-06-17 Thread Dave Watts
> I have API.class in JVM and java settings in cf administrator.
> Today I tried create java object. I used following line:
> 
>  action="create">

First, I'd just put this class in WEB-INF/classes instead of some other
directory. That directory is already in the classpath. Second, your class
attribute indicates that the package is mobi.mtld.da, which means you need
that corresponding directory structure
(WEB-INF/classes/mobi/mtld/da/Api.class).

I seem to recall you had a jar file, though. If so, you can put it in
WEB-INF/lib. Assuming it contains the package structure listed above, that
should be all you need to do.

In either case, after adding your Java file to the appropriate directory,
restart CF.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307637
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread Dave Watts
> I am 99% sure coldfusion 8 has as massive JNDI bug, which 
> makes me think no-one is using this feature.

You're right about that, I think. I rarely see them used. Are you running 8,
or 8.0.1? If the latter, you should report it as a bug.

> For the adventurous/non believers get a jar decompiler ...

I recommend that you avoid posting the results of decompiling commercial
closed-source products to a public list.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307636
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Looking for advice on permissions

2008-06-17 Thread Mike Kear
Thanks Gerald, I'll go have a look at that reference.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month



On Tue, Jun 17, 2008 at 6:58 AM, Gerald Guido <[EMAIL PROTECTED]> wrote:
> I don't have an answer but I can point you in a direction of a possible
> option.
>
> Take a look at this:
> http://photos.guidofamily.org/grid.PNG
>
> We need to do some fine grained permissions. Not nearly as fine grained as
> your require. But I can see adding other edit/permissions options to the
> drop down for each member according to a resource. Or possibly having group
> rights (admin, user, editor or what not)  and granting an individual certain
> rights (as defined by a group) to a particular resource.
> I used coldext to do this btw.  http://coldext.riaforge.org/
>
> coldext was pretty easy to pick up. And Justin was nice enough to answer
> some questions when I needed a hand with it.
>
> Let me know if you need any help with this as I have some working code
> examples.
>
> HTH
>
> G
>
>

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307635
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Looking for advice on permissions

2008-06-17 Thread Mike Kear
Thanks for your suggestions Claude.   Perhaps i should give you a bit
more background to this project.   Just to clarify, the scenario is
about the opposite to the one you are puzzled by.   I see the
circumstances where we might want to allow someone to edit content,
but for safety's sake not delete it or add new content.

Also i have a current need at a radio station to allow the sports
people to work on the sports part of the site, but not touch the
programming pages.  We want to let the people working on one radio
show to be able to update their page - add, edit and delete content,
but only from their page.I dont want to let them accidentally (or
deliberately - egos are huge at a radio station!) interfere with any
other show's content.

Another client is a professional association and has the same CMS.
They have lots of user groups, related to the different branches of
the profession.   Most of the content on that site is only visible to
people who are logged in.  There's a basic .site visible to the wide
world,  but most of the "meat" is only visible to people who are
logged in.  We also want to make some content visible only to
people who are logged in AND who are members of a user group -
Usergroup executive meeting minutes for example, or policy white
papers.

Thats why i wanted to set up the permissions to be able to assign read
as well as add/edit/delete rights.

I'm doing it at the moment but its clumsy and a real kludge, and if
anyone comes up with a new scenario that i need to account for, it
will probably hurt my brain figuring it out.  So since i'm working on
the next version of the CMS now, i'd like to incorporate a better
permissions scheme if i can find one.If i can't, i'll make do with
what i have.

Hence my original question.


Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307634
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: query help

2008-06-17 Thread Dave Watts
> SELECT COUNT(node.name)
> FROM tbl1 as node, tbl1 as parent
> WHERE parent.sponsor=node.name AND node.paid='yes'
> GROUP BY node.name

GROUP BY should only be used if you're selecting non-aggregates along with
your aggregate.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307633
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: query help

2008-06-17 Thread Phillip Vector
Well, is the paid field a character field or a number field in the DB?

and just FYI, you can always go #querryName.Recordcount# to get a
count via CF. :)

On Tue, Jun 17, 2008 at 3:23 PM, Jessica Kennedy
<[EMAIL PROTECTED]> wrote:
> I'm pretty sure I will smack my head when I hear the answer, but I'll ask 
> anyway...
>
> I am using a select count() query to get the number of people directly 
> sponsored by a person... this works fine, the problem is that I only want to 
> have the query count people that meet a certain qualification.  There has to 
> be a simple way to do this, my query pretty much looks like this:
>
> SELECT COUNT(node.name)
> FROM tbl1 as node, tbl1 as parent
> WHERE parent.sponsor=node.name AND node.paid='yes'
> GROUP BY node.name
>
> the "AND node.paid='yes'" seems to be doing nothing... I'm pretty sure I'm 
> missing something really simple, help!
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307632
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Accessibility testing

2008-06-17 Thread [EMAIL PROTECTED] [EMAIL PROTECTED]
Does anyone have any experience using developer-based accessibility solutions 
such as HiSoft's AccSoft, specifically with ColdFusion sites?

If not, how do you test?  Do you test?

Thanks~ 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307631
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


query help

2008-06-17 Thread Jessica Kennedy
I'm pretty sure I will smack my head when I hear the answer, but I'll ask 
anyway...

I am using a select count() query to get the number of people directly 
sponsored by a person... this works fine, the problem is that I only want to 
have the query count people that meet a certain qualification.  There has to be 
a simple way to do this, my query pretty much looks like this:

SELECT COUNT(node.name) 
FROM tbl1 as node, tbl1 as parent
WHERE parent.sponsor=node.name AND node.paid='yes'
GROUP BY node.name

the "AND node.paid='yes'" seems to be doing nothing... I'm pretty sure I'm 
missing something really simple, help! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307630
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread Kenton Gray
Good and very bad news,

TERRIBLY BAD NEWS:

I am 99% sure coldfusion 8 has as massive JNDI bug, which makes me think no-one 
is using this feature. Any statement that uses query parameters with JNDI will 
fail with a ClassCastException. For the adventurous/non believers get a jar 
decompiler (Jar Inspector on OS X is fantastic!), and check out 
coldfusion.sql.Executive original line number 1122, pasted at the bottom of 
this message for easy reference.

This has to do with the cfquery changes that occurred in CF8 (which have also 
caused me plenty of other issues: 
http://cfsearching.blogspot.com/2008/02/coldfusion-8-query-results-are.html)  

This is a straight up screwup if you ask me. If  the connection is a 
JRunConnectionHandle then supportsGeneratedKeys is set to false. If 
supportsGeneratedKeys is true then they brilliantly cast it to a 
JRunConnectionHandle. In the case of using JNDI & c3p0/jtds my connection class 
is NewProxyConnection. Below is the stack trace:

java.lang.ClassCastException: com.mchange.v2.c3p0.impl.NewProxyConnection
at coldfusion.sql.Executive.executeQuery(Executive.java:1122)
at coldfusion.sql.Executive.executeQuery(Executive.java:1008)
at coldfusion.sql.Executive.executeQuery(Executive.java:939)
at coldfusion.sql.SqlImpl.execute(SqlImpl.java:325)
at coldfusion.tagext.sql.QueryTag.executeQuery(QueryTag.java:831)
at coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:521)
at cftest2ecfm692724730.runPage([...]test.cfm:3) 

I would think anyone using JNDI with CF8 would have the same issue, simply do a 
cfquery with a cfqueryparam and you should get a similiar error (as long as 
your jdbc driver supports generatedkeys).

I've been through about a few billion different possibilities and I think I've 
hit a dead-end. If anyone wiser than myself has any suggestions please let me 
know. Also for what it is worth (which for me is nothing) this works FINE with 
Coldfusion 7. Anyone know a developer at Adobe? I'll even fix the code for them!

MEAGER GOOD NEWS:

Now for the small (and worthless) piece of good news is here is how you 
(completely unsupported style) dynamically create a JNDI datasource in CF8:


jndiName = "jndipath";
dsnName = "datasourcename";
dsDef = createObject('java','coldfusion.sql.DataSourceDef');
dsService = 
createObject('java','coldfusion.server.ServiceFactory').getDataSourceService();
configMap = dsService.getDatasources();
extraParameters = 
{sendStringParametersAsUnicode=false,port='',jndiName=jndiName,supportLinks=true};
dsnMap = 
{name=dsnName,password='',driver='jndi',url=jndiName,class="",type="jndi",urlmap=extraParameters,timeout=1200.0,interval=420,type="J2EE",disable=false,disable_blob=true,disable_clob=true,select=true,blob_buffer=64000,buffer=64000,storedproc=true};
fullMap = {};
fullMap[dsnName] = dsnMap;
configMap.putAll(fullMap);


I don't know why anyone would ever use this now but have fun if you do! 
(hopefully you'll have a better experience than i did.

So all in all a real huge waste of time, unless one of you really friendly and 
helpful house of fusion guys can help me out. I'd gladly buy anyone who can 
tell me what I'm doing wrong a few cases of beer (or any reasonable 
compensation!)

Kenton


Problem Coldfusion 8 code (decompiled coldfusion.sql.Executive) 

/*1043*/if(!jadozoom)
/*1065*/try {
/*1065*/String dbMetaClassName = dbmeta.getClass().getName();
/*1067*/
if(dbMetaClassName.equals("org.apache.derby.impl.jdbc.EmbedDatabaseMetaData") 
|| dbMetaClassName.equals("org.apache.derby.impl.jdbc.EmbedDatabaseMetaData40") 
|| dbMetaClassName.equals("org.apache.derby.client.net.NetDatabaseMetaData") || 
dbMetaClassName.equals("org.apache.derby.client.net.NetDatabaseMetaData40"))
/*1072*/supportsGeneratedKeys = true;
/*1078*/else
/*1078*/
if(con.getClass().getName().equals("jrun.sql.JRunConnectionHandle"))
/*1080*/supportsGeneratedKeys = false;
/*1084*/else
/*1084*/supportsGeneratedKeys = 
dbmeta.supportsGetGeneratedKeys();
}
/*1087*/catch(Throwable t) { }
Table table;
/*1109*/try {
/*1109*/int len = params != null ? params.length() : 0;
/**/if(len == 0)
/*1113*/stmt = con.createStatement();
/*1117*/else
/*1117*/if(supportsGeneratedKeys)
/*1122*/try {
/*1122*/Connection c = 
((JRunConnectionHandle)con).getPhysicalConnection();
/*1123*/
if(c.getClass().getName().equals("oracle.jdbc.driver.T4CConnection"))
/*1125*/stmt = con.prepareStatement(sql);
/*1129*/else
/*1129*/stmt = con.prepareStatement(sql, 1);
 

Re: mysqldump question

2008-06-17 Thread denstar
The dread .frm error!

I get it from time to time, but I cannot recall what causes it.
Foreign key constraints?  Some tables being innoDB and others being
MyISAM?

Something makes me lean towards foreign key constraints, try turning
off the constraint checking when loading the dump, perhaps.

HIH

On Tue, Jun 17, 2008 at 10:16 AM, Richard White <[EMAIL PROTECTED]> wrote:
> hi
>
> we are getting dumps of our mysql database on our server and then dropping 
> the database on our local machine,


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307628
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-17 Thread denstar
I've done the same thing.  Thank god for google, and manuals!  =]

On Tue, Jun 17, 2008 at 8:36 AM, Didgiman <[EMAIL PROTECTED]> wrote:
> Tried that, didn't work...
>
> What did work:
>
> I moved my "VirtualHost" descriptions to the bottom of the conf file, and
> added this right before it:
>
> 
>  AllowOverride All
>  Order allow,deny
>  Allow from all
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307627
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: SOLUTION: JVM Tuning and s... I'm Back

2008-06-17 Thread Brad Wood
Thanks for the note about 8.0.1.

Did you ever try my suggestion about not creating as many threads, but
instead creating 10 threads to do 130 reports apiece.

I think it might get rid of some of your overhead.

~Brad

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 3:20 PM
To: CF-Talk
Subject: SOLUTION: JVM Tuning and s... I'm Back

At least partially.

After getting appropriate approval from the powers-that-be I upgraded 
the ColdFusion server from 8.0.0 to 8.0.1.  This seems to have solved 
the threads never closing problem even though I saw nothing about 
threads in the Updater documentation.

This process still fills the memory and brings the server to its knees 
when it is run with a full load of ~1300 reports.  But now that I can 
see the threads opening and closing with smaller runs, I am confidant 
that a simple throttle will allow the process to work within the 
available resources of the server.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307626
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfc question...

2008-06-17 Thread Jason Durham
Yessir.  You can supply any arguments you need within those parenthesis.
:)

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 1:39 PM
To: CF-Talk
Subject: RE: cfc question...

Thanks, Jason!  I'll work on this approach.
Seems much simpler to work with once the function
is instantiated in memory.

Here's a question:  Would I include argument variables
in a call like this?



I assume the parenthesis are empty because no arguments
are involved?

However, if I wanted to get a particular agent's info:


if using a url, or

if using a form variable to id the agent.
Correct?

Rick

> -Original Message-
> From: Jason Durham [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2008 11:09 AM
> To: CF-Talk
> Subject: RE: cfc question...
> 
> You don't *have* to use cfinvoke.  I prefer not to.
> 
> Once you have instantiated (created an instance of it in memory) the
> object like you wrote below... you can 'invoke' any of the methods by
> calling them via the object instance name.
> 
> 
> 
createObject("component","components.agents.agent").init(application.dsn
> ) />
> 
> 
> 
> 
> 
> 
>   Agent Name = DB_FIELD_AGENT_NAME 
> 
> 
> Soon you will find the answer to all of your questions regarding OOP
or
> CFCs will be "it depends".  What does your agentLibrary CFC do?  If
your
> agentLibrary CFC interacts with a database (as you have indicated),
then
> what you're doing is correct.  Set a variable to hold your DSN/DB
> credentials, and reference that variable when instantiating any
> components that have to access the DB.
> 
> 
> 
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2008 3:57 PM
> To: CF-Talk
> Subject: RE: cfc question...
> 
> Ok, let me see if I'm understanding this...
> 
>  createObject("component","components.agents.agent").init(
> datasourcename ) />
> 
> The part above goes in the calling page before the cfinvoke
> statement, right?  If so, how does this work with the cfinvoke
> statement?
> Is "agentLibrary" above becoming the variable that will hold
> all the data returned by the cfc function, "agent"?
> 
> And I've always defined my db's using
> 
> in my application.cfm file, so if I continue doing that, then
> I guess the creation of the agentLibrary variable above would be:
> 
>  'components.agents.agent').init(#dsn#) />
> or something?
> 
> Or would defining the variable 'dsn' in my application.cfm become
> an obsolete practice in the 'cfc era'???
> 
> Also, in your code below, I don't see the variable 'agentLibrary'
being
> used
> after creation (instantiation?)...so how does it fit into the cfc
> functionality?
> 
> Rick
> 
> 
> > -Original Message-
> > From: Mike Kear [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 16, 2008 1:29 AM
> > To: CF-Talk
> > Subject: Re: cfc question...
> >
> > Ok syntax error  forgot the closing quotes.   Make that:
> >
> >
> >  createObject("component","components.agents.agent") />
> >
> >
> > And usually at the top of an object like that (if it's for the kinds
> > of things i think it is) you would have an init() functionthat
you
> > tell the component the datasource name. That looks something
like:
> >
> > 
> >  > output="false" hint="Initialises the component">
> > 
> > 
> > 
> > 
> >
> >
> > It seems a bit of extra typing to have that at the top of your cfc,
> > but for reasons of encapsulation (sorry for using the jargon!)  its
> > best to have the cfc so that if it needs to know something you'll
tell
> > it, rather than have it rely on finding what it needs in application
> > or session scope or something.So if you have that init()
function
> > in your component, you'd instantiate it by chaining the .init()
method
> > when you invoke it.  ( You can chain methods one behind the other )
> >
> >  > createObject("component","components.agents.agent").init(
> > datasourcename ) />
> >
> > Throughout your cfc, wherever any function needs to run a query on
the
> > datasource, it will do it like so:
> >
> > 
> >SELECT AgentID from Agents
> >   WHERE  GRPOffCE =  > cfsqltype="cf_sql_varchar"/>
> > 
> >
> >
> > That way you can easily reuse the component without having to need
the
> > datasource to exist in application scope or anywhere else for that
> > matter.  The cfc needs to know the datasourcename so you tell it
that
> > when you instantiate the cfc.
> >
> >
> > Cheers
> > Mike Kear
> > Windsor, NSW, Australia
> > Adobe Certified Advanced ColdFusion Developer
> > AFP Webworks
> > http://afpwebworks.com
> > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
> >
> >
> >
> > On Mon, Jun 16, 2008 at 3:15 PM, Mike Kear <[EMAIL PROTECTED]>
> wrote:
> > > I think you're nearly there, Rick.Just make sure you are
> following
> > > the rules about how to set out paths for components:
> > >
> > > if your component is in
> > > e:\inetpub\webroot\c21ar\components\agents\agent.cfc   and the web
> > > root is at e:\i

SOLUTION: JVM Tuning and s... I'm Back

2008-06-17 Thread Ian Skinner
At least partially.

After getting appropriate approval from the powers-that-be I upgraded 
the ColdFusion server from 8.0.0 to 8.0.1.  This seems to have solved 
the threads never closing problem even though I saw nothing about 
threads in the Updater documentation.

This process still fills the memory and brings the server to its knees 
when it is run with a full load of ~1300 reports.  But now that I can 
see the threads opening and closing with smaller runs, I am confidant 
that a simple throttle will allow the process to work within the 
available resources of the server.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307624
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFDocument PDF output request producing errors

2008-06-17 Thread Kevin K.
Okey, it's producing but I don't know where they are. I even looked in the
folder and I cannot locate them. Are they hidden because of a parameter?

On Fri, Jun 13, 2008 at 5:30 PM, Wil Genovese <[EMAIL PROTECTED]> wrote:

> I have not tried writing a PDF to disk with cfdocument, but my guess is
> that
> like every other file operation in CF you need to specify the exact and
> full
> file path.
>
> ie - filename='d:\wwwroot\mywebsite\documents\stg.pdf'
>
>
> Wil Genovese
> Sr. Web Application Developer
> WolfNet Technologies, LLC
>
>
> On Fri, Jun 13, 2008 at 8:55 AM, Kevin Kelly <[EMAIL PROTECTED]> wrote:
>
> > I am not sure what I am doing wrong here, but I have tried this about a
> > bunch of times so far. I believe that this is correct for the top.
> >
> > 
> >  >   filename='stg.pdf'
> >   orientation="#URL.frmt#"
> >   pagetype="custom"
> >   pageheight="#VARIABLES.numH#"
> >   pagewidth="#VARIABLES.numW#"
> >   scale='100'
> >   overwrite = "no"
> >>
> > 
> >
> > My issue is that the document is not outputting to a separate file.
> > However, without the filename, I get the desired effect for browser
> output.
> > Suggestions, please.
> >
> >
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307623
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cfc question...

2008-06-17 Thread Rick Faircloth
Thanks, Jason!  I'll work on this approach.
Seems much simpler to work with once the function
is instantiated in memory.

Here's a question:  Would I include argument variables
in a call like this?



I assume the parenthesis are empty because no arguments
are involved?

However, if I wanted to get a particular agent's info:


if using a url, or

if using a form variable to id the agent.
Correct?

Rick

> -Original Message-
> From: Jason Durham [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2008 11:09 AM
> To: CF-Talk
> Subject: RE: cfc question...
> 
> You don't *have* to use cfinvoke.  I prefer not to.
> 
> Once you have instantiated (created an instance of it in memory) the
> object like you wrote below... you can 'invoke' any of the methods by
> calling them via the object instance name.
> 
> 
>  createObject("component","components.agents.agent").init(application.dsn
> ) />
> 
> 
> 
> 
> 
> 
>   Agent Name = DB_FIELD_AGENT_NAME 
> 
> 
> Soon you will find the answer to all of your questions regarding OOP or
> CFCs will be "it depends".  What does your agentLibrary CFC do?  If your
> agentLibrary CFC interacts with a database (as you have indicated), then
> what you're doing is correct.  Set a variable to hold your DSN/DB
> credentials, and reference that variable when instantiating any
> components that have to access the DB.
> 
> 
> 
> -Original Message-
> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2008 3:57 PM
> To: CF-Talk
> Subject: RE: cfc question...
> 
> Ok, let me see if I'm understanding this...
> 
>  createObject("component","components.agents.agent").init(
> datasourcename ) />
> 
> The part above goes in the calling page before the cfinvoke
> statement, right?  If so, how does this work with the cfinvoke
> statement?
> Is "agentLibrary" above becoming the variable that will hold
> all the data returned by the cfc function, "agent"?
> 
> And I've always defined my db's using
> 
> in my application.cfm file, so if I continue doing that, then
> I guess the creation of the agentLibrary variable above would be:
> 
>  'components.agents.agent').init(#dsn#) />
> or something?
> 
> Or would defining the variable 'dsn' in my application.cfm become
> an obsolete practice in the 'cfc era'???
> 
> Also, in your code below, I don't see the variable 'agentLibrary' being
> used
> after creation (instantiation?)...so how does it fit into the cfc
> functionality?
> 
> Rick
> 
> 
> > -Original Message-
> > From: Mike Kear [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 16, 2008 1:29 AM
> > To: CF-Talk
> > Subject: Re: cfc question...
> >
> > Ok syntax error  forgot the closing quotes.   Make that:
> >
> >
> >  createObject("component","components.agents.agent") />
> >
> >
> > And usually at the top of an object like that (if it's for the kinds
> > of things i think it is) you would have an init() functionthat you
> > tell the component the datasource name. That looks something like:
> >
> > 
> >  > output="false" hint="Initialises the component">
> > 
> > 
> > 
> > 
> >
> >
> > It seems a bit of extra typing to have that at the top of your cfc,
> > but for reasons of encapsulation (sorry for using the jargon!)  its
> > best to have the cfc so that if it needs to know something you'll tell
> > it, rather than have it rely on finding what it needs in application
> > or session scope or something.So if you have that init() function
> > in your component, you'd instantiate it by chaining the .init() method
> > when you invoke it.  ( You can chain methods one behind the other )
> >
> >  > createObject("component","components.agents.agent").init(
> > datasourcename ) />
> >
> > Throughout your cfc, wherever any function needs to run a query on the
> > datasource, it will do it like so:
> >
> > 
> >SELECT AgentID from Agents
> >   WHERE  GRPOffCE =  > cfsqltype="cf_sql_varchar"/>
> > 
> >
> >
> > That way you can easily reuse the component without having to need the
> > datasource to exist in application scope or anywhere else for that
> > matter.  The cfc needs to know the datasourcename so you tell it that
> > when you instantiate the cfc.
> >
> >
> > Cheers
> > Mike Kear
> > Windsor, NSW, Australia
> > Adobe Certified Advanced ColdFusion Developer
> > AFP Webworks
> > http://afpwebworks.com
> > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
> >
> >
> >
> > On Mon, Jun 16, 2008 at 3:15 PM, Mike Kear <[EMAIL PROTECTED]>
> wrote:
> > > I think you're nearly there, Rick.Just make sure you are
> following
> > > the rules about how to set out paths for components:
> > >
> > > if your component is in
> > > e:\inetpub\webroot\c21ar\components\agents\agent.cfc   and the web
> > > root is at e:\inetpub\webroot\c21ar,  then you would invoke the
> > > component with the following: ("Instantiate" is another term that
> > > confused me at first - how is 'instantiate' different from'invoke'?
> > > answer:  it's the same thing)

Cold Fusion Cookies

2008-06-17 Thread Cody W.
 Hello,

I am currently working on a small application that uses CFcookies to let
people into this particular microsite. If the cookie does not exist the
application forces them to the register page. My problem comes when trying
to create the Cookie.




It seems that no matter what I set the "expires" attribute to the cookie is
still set to session only and is deleted when the user leaves the page,
forcing them to re-register each time they visit.

I just need advice on how to have the cookie persist through browser
sessions. Any advice is appreciated. Thank you in advanced.

CW


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307621
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Deviceatlas and ColdFusion

2008-06-17 Thread Piotr Artman
>> When I was trying to import the Da.jar
>> file ( tag) I received the 
>> message: "Cannot import the tag 
>> library...
>
>Did you put it in the classpath?
>
>Dave Watts, CTO, Fig Leaf Software

Hi Dave,
I have API.class in JVM and java settings in cf administrator.
Today I tried create java object. I used following line:



Is this way is correct?
What shoiuld I do now?

Thanks for help

Piotr Artman


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307620
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Deviceatlas and ColdFusion

2008-06-17 Thread Piotr Artman
>> When I was trying to import the Da.jar
>> file ( tag) I received the 
>> message: "Cannot import the tag 
>> library...
>
>Did you put it in the classpath?
>
>Dave Watts, CTO, Fig Leaf Software 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307619
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Deviceatlas and ColdFusion

2008-06-17 Thread Piotr Artman
>> When I was trying to import the Da.jar
>> file ( tag) I received the 
>> message: "Cannot import the tag 
>> library...
>
>Did you put it in the classpath?
>
>Dave Watts, CTO, Fig Leaf Software 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307618
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


copy files with cfdirectory & cffile

2008-06-17 Thread thomas v
Hi,

I have couple of questions to ask:

1) I can specific copy one file from one folder to another one but I cannot 
copy all files from my 'dropoff' to my 'gal_o7'. What 's wrong with the code 
below? 
2) I am setting up an event gateway and my CFC will do the copying (I have no 
CFML). How do I dump out the cfdirectory list? 

Thanks

Here is my code:



 














~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307617
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


copy files with cfdirectory & cffile

2008-06-17 Thread thomas v
Hi,

I have couple of questions to ask:

1) I can specific copy one file from one folder to another one but I cannot 
copy all files from my 'dropoff' to my 'gal_o7'. What 's wrong with the code 
below? 
2) I am setting up an event gateway and my CFC will do the copying (I have no 
CFML). How do I dump out the cfdirectory query? 

Thanks

Here is my code:



 














~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307616
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: application design - frames or no frames?

2008-06-17 Thread denstar
On Tue, Jun 17, 2008 at 9:29 AM, Tom Chiverton wrote:
> On Tuesday 17 Jun 2008, Mike Little wrote:
>> the client has shown me the layout he wishes to use and it is very frame
>> orientated eg. click an item in the main frame and it updates a running
>> total in the bottom frame.
>
> You don't need FRAME for this, unless you have to deal with clients who have
> no JavaScript support.

Yuppers, that's pretty much the only reason a like them now.  Well,
and browsers seem to know what to do with them these days...  see how
far we've come!  :-)

Looks like iframes are still in HTML5... I'd thought they'd keep 'em,
with all that's going on with 'em, AJAX wise.

Sadly, iframes don't work the way framesets do in  tags.

Oh well.  You can really only push that dual-purpose type deal so far
anyways.  Might as well use a code generator and just bust out various
versions of the site...

-- 
Jack Burton: Well, ya see, I'm not saying that I've been everywhere
and I've done everything, but I do know it's a pretty amazing planet
we live on here, and a man would have to be some kind of FOOL to think
we're alone in THIS universe.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307615
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Simple Search

2008-06-17 Thread Nick Gleason
Dave,

Following up on your email below, we use verity in our application and it
has been very effective.  Are there advantages of using Google's product
over Verity?  Also, I'm assuming that there is a cost to the Google product.

N

.
..
 

> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 17, 2008 5:20 AM
> To: CF-Talk
> Subject: RE: Simple Search
> 
> > I want to set up a simple search page for one of our sites.  
> > Instead of doing a database search, I want to use something 
> to crawl 
> > the site on a regular interval, and then have the site search that 
> > index.
> >  
> > The options seem to be:
> >  
> > Verity - Although doesn't seem to allow for indexing remote 
> sites with 
> > vspider?
> 
> No, but if it's your site, why would that matter? You could 
> use the CFINDEX tag to index your site's database content 
> directly, then serve URLs to the appropriate scripts to show 
> that database content.
> 
> In any case, though, I'd recommend instead that you use the 
> Google Site Search product. This is separate from Google's 
> regular crawl of your site.
>  
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber 
> vendor-authorized instruction at our training centers in 
> Washington DC, Atlanta, Chicago, Baltimore, Northern 
> Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307614
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Binding a CFC

2008-06-17 Thread Ethan Harris
Here is the portion that I'm not sure about (below).  The method is actually 
quite long, but the vast majority is just using  to set variables within 
a  tag.  I've tested that portion, and I'm sure there's no bug there.  
I'm not so sure about this query:


rateQuery = QueryNew("Shippers,Rates");
newRows = QueryAddRow(rateQuery,2);
QuerySetCell(rateQuery, "Shippers", "FedEx",1);
QuerySetCell(rateQuery, "Rates", variables.fxprice,1);
QuerySetCell(rateQuery, "Shippers", "USPS",2);
QuerySetCell(rateQuery, "Rates", variables.pmprice,2);









>SHow us the entire method. This looks to be a bug in your CFC code.
>Ie, not an ajax issue at all.
>
>In fact, if you make a new CFM, use createObject, and call the method,
>do you get the same error?
>
>
>
>> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307613
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


mysqldump question

2008-06-17 Thread Richard White
hi

we are getting dumps of our mysql database on our server and then dropping the 
database on our local machine, re-creating the database with the command create 
database dbname, then when we try to import all data from the dump file it 
produces an error saying that a certain table (.frm) could not be created

does anyone know why this would happen

this used to work fine but is not starting to give us problems

thanks 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307612
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: application design - frames or no frames?

2008-06-17 Thread Tom Chiverton
On Tuesday 17 Jun 2008, Mike Little wrote:
> the client has shown me the layout he wishes to use and it is very frame
> orientated eg. click an item in the main frame and it updates a running
> total in the bottom frame.

You don't need FRAME for this, unless you have to deal with clients who have 
no JavaScript support.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307611
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: cfc question...

2008-06-17 Thread Jason Durham
You don't *have* to use cfinvoke.  I prefer not to.

Once you have instantiated (created an instance of it in memory) the
object like you wrote below... you can 'invoke' any of the methods by
calling them via the object instance name.









Agent Name = DB_FIELD_AGENT_NAME 


Soon you will find the answer to all of your questions regarding OOP or
CFCs will be "it depends".  What does your agentLibrary CFC do?  If your
agentLibrary CFC interacts with a database (as you have indicated), then
what you're doing is correct.  Set a variable to hold your DSN/DB
credentials, and reference that variable when instantiating any
components that have to access the DB. 



-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 3:57 PM
To: CF-Talk
Subject: RE: cfc question...

Ok, let me see if I'm understanding this...



The part above goes in the calling page before the cfinvoke
statement, right?  If so, how does this work with the cfinvoke
statement?
Is "agentLibrary" above becoming the variable that will hold
all the data returned by the cfc function, "agent"?

And I've always defined my db's using

in my application.cfm file, so if I continue doing that, then
I guess the creation of the agentLibrary variable above would be:


or something?

Or would defining the variable 'dsn' in my application.cfm become
an obsolete practice in the 'cfc era'???

Also, in your code below, I don't see the variable 'agentLibrary' being
used
after creation (instantiation?)...so how does it fit into the cfc
functionality?

Rick


> -Original Message-
> From: Mike Kear [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 16, 2008 1:29 AM
> To: CF-Talk
> Subject: Re: cfc question...
> 
> Ok syntax error  forgot the closing quotes.   Make that:
> 
> 
> 
> 
> 
> And usually at the top of an object like that (if it's for the kinds
> of things i think it is) you would have an init() functionthat you
> tell the component the datasource name. That looks something like:
> 
> 
>  output="false" hint="Initialises the component">
> 
>   
>   
> 
> 
> 
> It seems a bit of extra typing to have that at the top of your cfc,
> but for reasons of encapsulation (sorry for using the jargon!)  its
> best to have the cfc so that if it needs to know something you'll tell
> it, rather than have it rely on finding what it needs in application
> or session scope or something.So if you have that init() function
> in your component, you'd instantiate it by chaining the .init() method
> when you invoke it.  ( You can chain methods one behind the other )
> 
>  createObject("component","components.agents.agent").init(
> datasourcename ) />
> 
> Throughout your cfc, wherever any function needs to run a query on the
> datasource, it will do it like so:
> 
> 
>SELECT AgentID from Agents
>   WHERE  GRPOffCE =  cfsqltype="cf_sql_varchar"/>
> 
> 
> 
> That way you can easily reuse the component without having to need the
> datasource to exist in application scope or anywhere else for that
> matter.  The cfc needs to know the datasourcename so you tell it that
> when you instantiate the cfc.
> 
> 
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> Adobe Certified Advanced ColdFusion Developer
> AFP Webworks
> http://afpwebworks.com
> ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
> 
> 
> 
> On Mon, Jun 16, 2008 at 3:15 PM, Mike Kear <[EMAIL PROTECTED]>
wrote:
> > I think you're nearly there, Rick.Just make sure you are
following
> > the rules about how to set out paths for components:
> >
> > if your component is in
> > e:\inetpub\webroot\c21ar\components\agents\agent.cfc   and the web
> > root is at e:\inetpub\webroot\c21ar,  then you would invoke the
> > component with the following: ("Instantiate" is another term that
> > confused me at first - how is 'instantiate' different from'invoke'?
> > answer:  it's the same thing)
> >
> > 
> >
> >
> 
> 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307610
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Yet another validating email addresses question

2008-06-17 Thread Brad Wood
Ben Nadel has a good post about how the isemail function differs from
the cfmail tag in its E-mail validation.

Tom Jordahl chimed in a explained a few things.

Unfortunatley, his site appears to be down right now (getting a 403),
but if you google the address, you can click on "cached".

http://www.bennadel.com/blog/265-ColdFusion-Email-Validation-IsValid-And
-CFMail-Errors.htm

~Brad

-Original Message-
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 9:27 PM
To: CF-Talk
Subject: Re: Yet another validating email addresses question

Azadi Saryev wrote:
> or .travel for that matter

It let "[EMAIL PROTECTED]@somewhere.com.rpost.org through though...

The main problem is - I need something that MATCHES what the CFMAIL tag 
will refuse/accept.

Seems plain wrong that isValid("email", request.email) and the CFMAIL 
tag don't match each other.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307609
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: JVM Tuning and s... I'm Back

2008-06-17 Thread Ian Skinner
Mark Kruger wrote:
> One more thought. Your code sets variables in the threads without var'ing
> them. Possibly this could lead conditions where threads are competing. So
> your simple example might be better if you did:

Does the 'Var' scope apply to threads?  I see what you are saying, that 
maybe the threads are not 'thread safe'.  That could very well be the 
case and is worth investigating.  I just wonder if the VAR command 
applies here though?  I thought it only applied to functions?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307608
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Tried that, didn't work...

What did work:

I moved my "VirtualHost" descriptions to the bottom of the conf file, and
added this right before it:


  AllowOverride All
  Order allow,deny
  Allow from all


On Tue, Jun 17, 2008 at 4:33 PM, Dave Watts <[EMAIL PROTECTED]> wrote:

> > However, I'm still having problems when creating a site that
> > has the documentRoot outside the webroot.
> > When I do that, I get the "403 Forbidden" error.
>
> Set permissions on that directory to allow read/execute for "authenticated
> users".
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
>
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307607
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extending Application.cfc

2008-06-17 Thread Dave Watts
> However, I'm still having problems when creating a site that 
> has the documentRoot outside the webroot.
> When I do that, I get the "403 Forbidden" error.

Set permissions on that directory to allow read/execute for "authenticated
users".

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307606
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Thanks Steve, that really helped a lot!
However, I'm still having problems when creating a site that has the
documentRoot outside the webroot.
When I do that, I get the "403 Forbidden" error.
Any sugestions?
I'm running Vista... (sorry ;o)

This is my VirtualHost in the config file:

DocumentRoot "C:/Apache/htdocs"

NameVirtualHost *


DocumentRoot "C:\wwwroot\site1"
ServerName site1.localhost
Alias /CFIDE "C:\Apache\htdocs\cfusion\CFIDE"

  AllowOverride All
  Order allow,deny
  Allow from all

ErrorLog logs/site1-error.log
CustomLog logs/site1-access.log common



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307605
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: load issue and SQL Server

2008-06-17 Thread Ryan Duckworth
Oh... I forgot to mention that ColdFusion caches IP addresses.

During down time, you need to:
1. Stop the ColdFusion Service
2. run ipconfig /flushdns
3. run ipconfig /registerdns
4. run ping yourSQLServer and you should get back the new IP
5. Start the ColdFusion Service

Make sure that in the ColdFusion Administrator you are using the name
of the SQL Server and not the old IP address.

I think this will solve your problem.
Ryan

On Tue, Jun 17, 2008 at 8:42 AM, Ryan Duckworth
<[EMAIL PROTECTED]> wrote:
> Does the web server have 1 or 2 network cards?  If only 1, it is
> contending with all the web traffic.
> 2 GB nics in the web server and 1 GB nic in the SQL Server should
> solve the problem.
>
> The default isolation level is READ COMMITTED, so that looks normal.
>
> When you find a thread in Fusion Reactor that is taking a really long
> time, capture the stack trace and email it to me.
>
> Hope this helps.
> Ryan
>
> On Mon, Jun 16, 2008 at 5:25 AM, Rick Root <[EMAIL PROTECTED]> wrote:
>> I've got a client who has asked me to move a SQL Server database from
>> one server (the web server) to a separate server.
>>
>> Everything is working well when they database is on the same machine.
>> However, when I moved the db and modified the DSN to point to the
>> remote SQL Server (different box in the same rack) I'm finding the
>> application is running really slow.
>>
>> I have the CF thread pool limit set to 10 threads right now but a lot
>> of the threads are running very slowly now and if I stack trace them
>> in Fusion Reactor, I see stuff like this:
>>
>> http://cfm.pastebin.com/d53dc3ada
>>
>> Particularly, if I stack trace a request over and over again I see
>> this line changing:
>>
>> waiting on <0x1372a7a> (a coldfusion.server.j2ee.sql.pool.JDBCPool
>> held by thread 373, jrpp-130
>>
>> So it would appear that something is blocking many of the requests but
>> I can't tell what.
>>
>> Additionally, if I go into SQL Server Enterprise Manager, I'm seeing
>> database locks for both CF processes that are connected to the db.
>>
>> If I look at the details of the database locks, the last SQL batch
>> transmitted is:  SET TRANSACTION ISOLATION LEVEL READ COMMITTED
>>
>> So maybe these database locks are causing it, but I'm not sure where
>> those are coming from
>>
>> NOTE:  This application is fairly active, even at 6:00 am EST.  It's
>> running on CF 8 *STANDARD* on Windows SErver 2003.
>>
>> Anyone have any suggestions for me for things to look for?
>>
>> --
>> Rick Root
>> New Brian Vander Ark Album, songs in the music player and cool behind
>> the scenes video at www.myspace.com/brianvanderark
>>
>> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307604
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Function to get all dates in a year for a given day of week

2008-06-17 Thread Dawson, Michael
First, check out http://cflib.org for a possible, existing function.

Second, Find the first Sunday of the year, then CFLOOP with an interval
of 7 to get every other Sunday.

m!ke 

-Original Message-
From: Dave Phillips [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 17, 2008 8:32 AM
To: CF-Talk
Subject: Function to get all dates in a year for a given day of week

Hi all,

I need to write a function that will return all Sunday dates in a given
year.  I know there are several approaches, and before I started writing
it, I wanted to see if anyone out there already has something like it,
or what suggestions you might have on how to approach it.

Thanks!

Dave 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307603
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: load issue and SQL Server

2008-06-17 Thread Ryan Duckworth
Does the web server have 1 or 2 network cards?  If only 1, it is
contending with all the web traffic.
2 GB nics in the web server and 1 GB nic in the SQL Server should
solve the problem.

The default isolation level is READ COMMITTED, so that looks normal.

When you find a thread in Fusion Reactor that is taking a really long
time, capture the stack trace and email it to me.

Hope this helps.
Ryan

On Mon, Jun 16, 2008 at 5:25 AM, Rick Root <[EMAIL PROTECTED]> wrote:
> I've got a client who has asked me to move a SQL Server database from
> one server (the web server) to a separate server.
>
> Everything is working well when they database is on the same machine.
> However, when I moved the db and modified the DSN to point to the
> remote SQL Server (different box in the same rack) I'm finding the
> application is running really slow.
>
> I have the CF thread pool limit set to 10 threads right now but a lot
> of the threads are running very slowly now and if I stack trace them
> in Fusion Reactor, I see stuff like this:
>
> http://cfm.pastebin.com/d53dc3ada
>
> Particularly, if I stack trace a request over and over again I see
> this line changing:
>
> waiting on <0x1372a7a> (a coldfusion.server.j2ee.sql.pool.JDBCPool
> held by thread 373, jrpp-130
>
> So it would appear that something is blocking many of the requests but
> I can't tell what.
>
> Additionally, if I go into SQL Server Enterprise Manager, I'm seeing
> database locks for both CF processes that are connected to the db.
>
> If I look at the details of the database locks, the last SQL batch
> transmitted is:  SET TRANSACTION ISOLATION LEVEL READ COMMITTED
>
> So maybe these database locks are causing it, but I'm not sure where
> those are coming from
>
> NOTE:  This application is fairly active, even at 6:00 am EST.  It's
> running on CF 8 *STANDARD* on Windows SErver 2003.
>
> Anyone have any suggestions for me for things to look for?
>
> --
> Rick Root
> New Brian Vander Ark Album, songs in the music player and cool behind
> the scenes video at www.myspace.com/brianvanderark
>
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307602
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Looking for advice on permissions

2008-06-17 Thread Claude Schneegans
IMHO, independant permissions for viewing, adding, editing, deleting 
elements
may be going too much into details and obviously adding to the complexity.

Having only one permission for each type of element should be enough.
- any one can view elements on the public site anyway, so no permission 
is needed;
- permission for adding elements, but not editing or deleting it in case 
of error is kind of weird;
- why any one could delete an element, but not just modify it is there 
is anything wrong with it?

My system uses a table for all CMS types of elements (less than 20 of them).
Each type has a two characters code.
Every user has a list of all types he can edit (ie: view, add, modify, 
delete);
This list is set in a session variable at login time.
In the admin module, the menu is generated according to the codes found 
in this permissions list.

As an extra security measure, the presence of the element code in the 
list is checked again
at the top of all editing modules (one line of code).

Setting perrmissions for users is just a matter of checking appropriates 
checkboxes in a form
and storing the list of permissions in the appropriate field for this user.

Now I agree that this appraoch is not database wise "normalized", but it 
is much more easy and efficient if you have
say less than 1000 different types of permisions.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307601
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Automating Domain/Mailbox Setup

2008-06-17 Thread Dawson, Michael
I can't help with the first question, but I can help with the second.

Since you are using Exchange, I can also assume that you are using
Active Directory.

You can add a mailbox either when the account is created or after.  RUS
(Remote Update Services) is responsible for determining if an Active
Directory account should have a mailbox.  If so, then RUS creates the
mailbox.

The easiest way to create the mailbox, after an account is created, is
to set three attributes on the domain account:
mailNickname
homeMDB
mDBUseDefaults

mailNickname = The username of the email address, in most cases.

homeMDB = The location of the mailbox in Exchange.  You can use another
account's homeMDB value as a reference.

mDBUseDefaults = Set to TRUE to use the default warning limits on the
mailbox size.  If FALSE, there will be no limits, by default.

These attributes can be set via LDAP.  However, creating an Active
Directory account is a different matter.

Once you have set these three attributes, RUS will "notice" them and
create the mailbox in a few moments.  You will know it's done when the
account has a email address.

m!ke

-Original Message-
From: Tom Smith [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 10:33 PM
To: CF-Talk
Subject: Automating Domain/Mailbox Setup

Hey guys. We are currently looking for some insight on how to automate
domain name setup (both sub-domain, and standalones). Its a service we
are building, not a hosting solution so ideally it will not involve
control panels, but be some type of CF script we can run to setup
domains in IIS and add host headers. Has anyone had to do something
similar?

We are also looking for a similar type of mailbox solution where
subscribers can create their own domain mailboxes via our CF App. I'm
aware CF8 can access exchange server from an access level, but I didn't
see any tags or functions that allow you to create accounts, just manage
existing ones. Any insight on either solution would be apperciated.

We are running our own colo, CF8 Enterprise, on a windows 2003 server. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307600
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Function to get all dates in a year for a given day of week

2008-06-17 Thread Dave Phillips
Hi all,

I need to write a function that will return all Sunday dates in a given year.  
I know there are several approaches, and before I started writing it, I wanted 
to see if anyone out there already has something like it, or what suggestions 
you might have on how to approach it.

Thanks!

Dave 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307599
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: application design - frames or no frames?

2008-06-17 Thread Andy Matthews
Frames serve several purposes, but you're going to regret it if you decide
to go that way. There are other ways to achieve what frames have to offer
without actually using frames. 

-Original Message-
From: Mike Little [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 16, 2008 7:54 PM
To: CF-Talk
Subject: application design - frames or no frames?

hi guys,

just about to get into the design of a stock ordering application eg.
stockists order items from the manufacturer (backorders etc).

the client has shown me the layout he wishes to use and it is very frame
orientated eg. click an item in the main frame and it updates a running
total in the bottom frame.

what i wanted to know is, are frames still a viable option for application
design? or should i be exploring other options.

thanks heaps
mike 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307598
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extending Application.cfc

2008-06-17 Thread Cutter (CFRelated)
I have several tutorials on my site for integrating CF and Apache, with 
some step-by-step stuff on modifying your config files:

http://blog.cutterscrossing.com/index.cfm/Apache

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Didgiman wrote:
> Nobody?
> 
> What's this? First y'all tell me to install Apache, just like you did, but
> when I ask for an example config file, nobody has one?
> Come on, help a guy out here...
> 
> Thanks
> 
> On Mon, Jun 16, 2008 at 9:26 PM, Didgiman <[EMAIL PROTECTED]> wrote:
> 
>> Ok, ok, you all convinced me.
>> I went along and installed Apache.
>> However, I can't get it to run multiple sites and have the root /CFIDE/
>> still working (for the CF admin).
>>
>> Can someone please send me a copy of their httpd.conf file, so I can
>> compare it to mine to see what I'm doing wrong.
>> If there's anything funky I need to do with the hosts file as well, please
>> let me know.
>>
>> Thanks to all for the advice!
>>
>> Wim.
>>
>>
>> On Mon, Jun 16, 2008 at 5:32 PM, Brad Wood <[EMAIL PROTECTED]>
>> wrote:
>>
>>> I won't lie to you.  If you've never used it, I do think Apache is
>>> harder to setup than IIS, or even CF but I still switched to it a long
>>> time ago on my home PC because I wanted multiple sites.
>>>
>>> I love it and I'm glad I did it.  (And there's tons of info about it
>>> lying around the 'net)
>>>
>>> ~Brad
>>>
>>> -Original Message-
>>> From: s. isaac dealey [mailto:[EMAIL PROTECTED]
>>> Oh... I guess I skimmed over the fact that this was to get around the
>>> single-site limitation in the XP Pro version of IIS... So yeah, if
>>> that's the issue, I definitely recommend Apache -- it's honestly not any
>>> more difficult to set up and configure than ColdFusion imo.
>>>
>>>
> 
> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307597
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extending Application.cfc

2008-06-17 Thread Didgiman
Nobody?

What's this? First y'all tell me to install Apache, just like you did, but
when I ask for an example config file, nobody has one?
Come on, help a guy out here...

Thanks

On Mon, Jun 16, 2008 at 9:26 PM, Didgiman <[EMAIL PROTECTED]> wrote:

> Ok, ok, you all convinced me.
> I went along and installed Apache.
> However, I can't get it to run multiple sites and have the root /CFIDE/
> still working (for the CF admin).
>
> Can someone please send me a copy of their httpd.conf file, so I can
> compare it to mine to see what I'm doing wrong.
> If there's anything funky I need to do with the hosts file as well, please
> let me know.
>
> Thanks to all for the advice!
>
> Wim.
>
>
> On Mon, Jun 16, 2008 at 5:32 PM, Brad Wood <[EMAIL PROTECTED]>
> wrote:
>
>> I won't lie to you.  If you've never used it, I do think Apache is
>> harder to setup than IIS, or even CF but I still switched to it a long
>> time ago on my home PC because I wanted multiple sites.
>>
>> I love it and I'm glad I did it.  (And there's tons of info about it
>> lying around the 'net)
>>
>> ~Brad
>>
>> -Original Message-
>> From: s. isaac dealey [mailto:[EMAIL PROTECTED]
>> Oh... I guess I skimmed over the fact that this was to get around the
>> single-site limitation in the XP Pro version of IIS... So yeah, if
>> that's the issue, I definitely recommend Apache -- it's honestly not any
>> more difficult to set up and configure than ColdFusion imo.
>>
>> 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307596
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: load issue and SQL Server

2008-06-17 Thread Richard Cooper
Was the SQL server at the same datacentre? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307595
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Yet another validating email addresses question [bayes SPAMTRAP]

2008-06-17 Thread Paul Hastings
this thing got some play on the javamail list last month.

https://www.boxbe.com/freebox.html

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307594
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Jrun Memory Usage Problem: could fileexists() be the culprit?

2008-06-17 Thread Kunal Saini
Hi Sean, 

I have tested Performance of function fileexists(). This function is not not a 
bottleneck. Also in a directory it doesn't search inside other folders.

Following scenario i used to test this:
30 Vusers for 10 mins trying to hit some randomly generated filenames(some of 
them do not exist). I observed that young gen and average heap size was almost 
constant during the run and heap size comes down as young gen GC was called.

Thanks
Kunal Saini
Cold Fusion Team



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307593
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Integrating ColdFusion with Tuxedo

2008-06-17 Thread Joseph Bugeja
Dear ColdFusion Users,

 

We are in the process of migrating a legacy client-server system from VB to
ColdFusion. The current system uses Tuxedo middleware platform. I believe
that Tuxedo provides listener/handlers for remote clients (Java, CORBA, WS),
but I would like to check with you if you foresee any difficulties or
challenges that we might encounter in integrating ColdFusion with this
platform. 

 

Your help and experience is really appreciated.

 

Sincerely,

Joseph Bugeja.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307592
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Integrating ColdFusion with Tuxedo

2008-06-17 Thread Joseph Bugeja
Dear ColdFusion Users,

We are in the process of migrating a legacy client-server system from VB to 
ColdFusion. The current system uses Tuxedo middleware platform. I believe that 
Tuxedo provides listener/handlers for remote clients (Java, CORBA, WS), but I 
would like to check with you if you forsee any difficulties or challenges that 
we might encounter in integrating ColdFusion with this platform. 

Your help and experience is really appreciated.

Sincerely,
Joseph Bugeja. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307591
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Yet another validating email addresses question

2008-06-17 Thread Dave Watts
> this regex seems to work for me:
> 
> ^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([a-z
> ]{2,3})|(aero|coop|info|museum|name|travel|asia|mobi))$
> 
> NOTE: make sure you LCase the var that holds the email 
> address first...
> 
> Anyone can see anything terribly wrong with this one? I am 
> way too far from regex guru to know myself...

I'm no regex guru either, but there are valid characters outside the ranges
listed above, such as single quotes and plus signs.

http://en.wikipedia.org/wiki/E-mail_address#RFC_Specification

> Is an email like [EMAIL PROTECTED] a valid one (4 
> parts in the domain part)? 'cos that one fails on the above regex...

Yes, that is a valid address. To the best of my knowledge, there is no
maximum depth for subdomains.

> Also, technically, are [EMAIL PROTECTED] and [EMAIL PROTECTED] 
> considered the same address or not? Will any mail server 
> allow one to have both [EMAIL PROTECTED] and 
> [EMAIL PROTECTED] on the same domain?

According to RFC 2821, the local part of the address is case-sensitive. Most
mail servers I've worked with will treat it as case-insensitive, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307590
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Yet another validating email addresses question

2008-06-17 Thread Tom Chiverton
On Tuesday 17 Jun 2008, Azadi Saryev wrote:
> Anyone can see anything terribly wrong with this one? I am way too far
> from regex guru to know myself...

Yeah, when a new TLD comes out, it'll fail.

If people can't type their email address (twice) correctly, maybe you can 
afford to forget about them.
It's not like you can really verify a syntically valid address is even 
deliverable anyway.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307589
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Simple Search

2008-06-17 Thread Dave Watts
> I want to set up a simple search page for one of our sites.  
> Instead of doing a database search, I want to use something 
> to crawl the site on a regular interval, and then have the 
> site search that index.
>  
> The options seem to be:
>  
> Verity - Although doesn't seem to allow for indexing remote 
> sites with vspider?

No, but if it's your site, why would that matter? You could use the CFINDEX
tag to index your site's database content directly, then serve URLs to the
appropriate scripts to show that database content.

In any case, though, I'd recommend instead that you use the Google Site
Search product. This is separate from Google's regular crawl of your site.
 
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307588
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: application design - frames or no frames?

2008-06-17 Thread Dave Watts
> the client has shown me the layout he wishes to use and it is 
> very frame orientated eg. click an item in the main frame and 
> it updates a running total in the bottom frame.
> 
> what i wanted to know is, are frames still a viable option 
> for application design? or should i be exploring other options.

I would recommend that you avoid frames. Everything you mention can be
accomplished within a fairly simple DHTML interface.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307587
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4