RE: Flash and CF Integration

2002-11-26 Thread Matthew P. Smith
So much good info!  I struggled with just trying to load from a text
file, but this gives me a few gotchas to check out.  I might actually
get it to work this time.

-Original Message-
From: Jason Miller [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 6:35 PM
To: CF-Talk
Subject: Re: Flash and CF Integration

you use a 
loadVariables( "http://www.syourdomain.com/page.cfm";
 , _root);

command. Things to note.
Do a search on LoadVarsNum and LoadVars - you'll wind up using needing
to know when to use which and why.

Also - notice my "_root." - well in some instances that may work as
"_level0." depending on setup of your movie. But if all the boxes are
simply on root timeline - then you reference a loaded var from cf string
&name=Dennis
as _root.name in the text properties box.

It is better practice to load the vars up into a MC - In that case
change that statement way up top to the instance name. Create an MC with
all your form fields in it. Place it on the stage. Remember to name it
in instance properites and load them into that MC. Say the MC was -
MyStuff.
then you reference it simply as _root.MyStuff.name
Follow?

Also - important 
you CAN NOT use data on the same frame you loaded it.

This will save you alot of time. Parse a variable to look for at the end
of the cfm string. like &EOF=True
Then in flash - the frame after your loadVars - do something like this
if (EOF == 1) {
EOF = 0;
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}

So it only proceeds IF the end of the string is received. Flash takes
care of everything else.

That should get you started.
actionscript.org & 
flashcfm.com are great resources with out too much noise.
Jason Miller



dennis baldwin wrote:


Also, please feel free to check out  www.devmx.com
  for more info on

Flash/CF integration.



Regards,

Dennis



-Original Message-

From: Samuel R. Neff [ mailto:[EMAIL PROTECTED]
 ] 

Sent: Tuesday, November 26, 2002 9:48 AM

To: CF-Talk

Subject: Re: Flash and CF Integration





Yes, this can be done in Flash.  We're working on a very similar 

application where it maps items to a grid and then draws connectors

between 

related items.



Regarding layers, the first thing to remember is that they are only used



for z-order and organization.  AFAIK, they don't actually exist in the 

final SWF (only in the FLA).  That said, it is crucial to app 

maintainability that all items be on a separate later, or at the very

least 

all unrelated items (so a box and it's outline can be on a layer, but

other 

boxes should be on a different layer).



However, for dynamic layout like this, it's far easier to add items to

the 

timeline programmatically with attachMovie--when dealing with this many 

boxes, you should find it improves maintainability.



BTW, since these questions are not really related to CF, this thread

would 

probably be best served on a Flash 

forum.   http://webforums.macromedia.com/flash
  or

http://chattyfig.figleaf.com/  



HTH,



Sam





At 06:16 AM 11/26/2002, you wrote:

  

I'm doing my first Flash and CF integration app and have a list of

questions.  I have to dynamically display data in 14 text boxes as well



as 

  

have up to 36 dynamic lines connecting the boxes based on query 

results.  I"m not sure if this is possible with flash. I have my



template 

  

done in flash but everything is on 1 layer. Do I need to put things on 

different layers? Can anyone tell me if this is possible? There will be



at 

  

least 15 queries that have to be run to populate this template with the





  

correct data.  Any suggestions? Help? If you would like to see the fla 

file, please email me.



TIA









~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



datasource problem with mx

2002-11-26 Thread Matthew P. Smith
I am getting this error first time I hit a cfquery:
 

Error Occurred While Processing Request 



Data source foo could not be found. 

 
Thing is, it verifies fine in cfadministrator.
 
I have installed the latest cf server update, and restarted the box
several times.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: CFMX Server -Java class

2002-11-26 Thread Joe Eugene
> > Not if it is in a 'hot deploy' directory is my understanding (this has
> > been discussed here before but I don't recall the exact details).

Where is the 'hot deploy' directory?

Joe

> -Original Message-
> From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 11:12 PM
> To: CF-Talk
> Subject: Re: CFMX Server -Java class
>
>
> On Tuesday, November 26, 2002, at 07:31 PM, Sean A Corfield wrote:
>
> > On Tuesday, Nov 26, 2002, at 16:31 US/Pacific, Dick Applebaum wrote:
> >> You recompile a Java class file that is referenced by cfobject.
> >>
> >> I am told that you must recycle CFMX for the updated class file to be
> >> recognized.
> >
> > Not if it is in a 'hot deploy' directory is my understanding (this has
> > been discussed here before but I don't recall the exact details).
> >
> > They drop and restart each server in the cluster. Normally production
> > systems do not use 'hot deploy' because of the performance overhead
> > involved in 'watching' a hot deploy directory.
> >
>
> OK, then it would seem to make sense to use "hot deploy"on a developer
> system
> where the performance overhead would not be an issue.
>
> Then, on a single-server production system, not use "hot deploy".
>
>
> >> What about CFMXj2ee running on JRun, webSphere, ant the like?
> >
> > See above for clusters - some of those systems support session
> > replication / failover. That means zero downtime for this sort of
> > upgrade.
>
> So, with session replication/failover, you:
>
>1) recompile the necessary Java class files and deploy them on all
> the servers (they remain inactive).
>
>2) recycle each server, one-at-a-time, activating the updated class
> files
>
> It could get messy if the old Java classes were causing failures and/or
> you had other
> failures when recycling the individual servers -- but this would be
> unlikely.
>
> At best, you wouldn't even notice.
>
> At worst, you could recycle the whole system,
>
> >
> >> What about Pure Java/JSP systems on these app servers?
> >
> > Same.
> >
>
> So, If I understand, because of the automatic "not compile and hot
> deploy" of CF templates under CFMX --
> You can incorporate CF changes, without recycling the system.
>
> On a pure Java/JSP system, you would likely need to recycle the system.
>
> Appears to be an advantage for CFMX.
>
> Is there some endemic reason that Java programs can't be/aren't "hot
> deployed" similar to the way CFMX does it?
>
> This whole server side is a big unknown to me -- thanks for your
> answers, and your patience!
>
> This is good poop!
>
> Dick
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: GoogleBot Robot.txt

2002-11-26 Thread Jim McAtee
What good would it do you if the indexing robot sees exactly the same page
content on every page it retrieves?

If you just want to keep googlebot from spidering the entire site, including the
root level, use the following in your robots.txt:

User-agent: googlebot
Disallow: /

But I'd find out _why_ the robot is accessing files without passing parameters.
If some of those files aren't complete web pages (cfinclude's or cf tags), I'd
really be worried.  Normally, it only follows links that exist somewhere on your
site, or possibly on another site.  So it would suggest you've got some bad
links somewhere.

Jim


- Original Message -
From: "cfhelp" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 6:14 PM
Subject: GoogleBot Robot.txt


> I have put a robots.txt file in the root of my site to stop it from
> accessing subdirectories. But GoogleBot is still accessing all the files in
> my root bit some of the files do not run without passing a variable to them.
> So my Application Logfile is full of errors.
>
> So I want to know if it is a good idea to put this in my Application.cfm
> file?
>
>  (+http://www.googlebot.com/bot.html)'>
>
> 
>  
> Site Title
>
> 
>
>   
> 
>
> Text from the About page
>
> 
> 
> 
> 
>
>
> This way Google gets to spider all pages and I don't get any errors.
>
> Rick
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: (ot) java help

2002-11-26 Thread Chris Montgomery
Howdy Howard,

Tuesday, November 26, 2002, 11:07:11 AM, Owens, Howard wrote:

> I tried finding a java discussion list for beginners and the only one
> found seems to be too inactive to be much help.

There is a list for java beginners here:
http://p2p.wrox.com/list.asp?list=beginning_java
It's associated with the WROX book "Beginning Java 2 SDK 1.4 Edition"
(which I've recently started reading), but you could probably ask your
question anyway.

WROX has more lists here:
http://p2p.wrox.com/listindex.asp
(scroll down the page to see the java lists)

HTH.

-- 
Chris Montgomerymonty @ airtightweb.com 
Airtight Web Services   http://www.airtightweb.com
Web Development, Web Project Management, Software Sales
210-490-3249/888-745-7603

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



activePdf

2002-11-26 Thread Tony Weeg
ok, so i tried it, downloaded it, and im getting this error...

An exception occurred during method selection process for Method
OUTPUTDIRECTORY The cause of this exception was that there are no
methods with the the specified method name and argument types. 

should i expect this? or am i probably doing something wrong?
i downloaded their cf example

thanks!

...tony

tony weeg
[EMAIL PROTECTED]
www.revolutionwebdesign.com
rEvOlUtIoN wEb DeSiGn
410.334.6331 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: CFMX Server -Java class

2002-11-26 Thread Dick Applebaum
On Tuesday, November 26, 2002, at 07:31 PM, Sean A Corfield wrote:

> On Tuesday, Nov 26, 2002, at 16:31 US/Pacific, Dick Applebaum wrote:
>> You recompile a Java class file that is referenced by cfobject.
>>
>> I am told that you must recycle CFMX for the updated class file to be
>> recognized.
>
> Not if it is in a 'hot deploy' directory is my understanding (this has
> been discussed here before but I don't recall the exact details).
>
> They drop and restart each server in the cluster. Normally production
> systems do not use 'hot deploy' because of the performance overhead
> involved in 'watching' a hot deploy directory.
>

OK, then it would seem to make sense to use "hot deploy"on a developer 
system
where the performance overhead would not be an issue.

Then, on a single-server production system, not use "hot deploy".


>> What about CFMXj2ee running on JRun, webSphere, ant the like?
>
> See above for clusters - some of those systems support session
> replication / failover. That means zero downtime for this sort of
> upgrade.

So, with session replication/failover, you:

   1) recompile the necessary Java class files and deploy them on all 
the servers (they remain inactive).

   2) recycle each server, one-at-a-time, activating the updated class 
files

It could get messy if the old Java classes were causing failures and/or 
you had other
failures when recycling the individual servers -- but this would be 
unlikely.

At best, you wouldn't even notice.

At worst, you could recycle the whole system,

>
>> What about Pure Java/JSP systems on these app servers?
>
> Same.
>

So, If I understand, because of the automatic "not compile and hot 
deploy" of CF templates under CFMX --
You can incorporate CF changes, without recycling the system.

On a pure Java/JSP system, you would likely need to recycle the system.

Appears to be an advantage for CFMX.

Is there some endemic reason that Java programs can't be/aren't "hot 
deployed" similar to the way CFMX does it?

This whole server side is a big unknown to me -- thanks for your 
answers, and your patience!

This is good poop!

Dick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: GoogleBot Robot.txt

2002-11-26 Thread Cameron Childress
I would say it would probably be a better plan to either cfparam the missing
variables, or cfcatch the erroring code.

-Cameron

-
Cameron Childress
Sumo Consulting Inc.
---
cell:  678-637-5072
aim:   cameroncf
email: [EMAIL PROTECTED]


> -Original Message-
> From: cfhelp [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 8:15 PM
> To: CF-Talk
> Subject: GoogleBot Robot.txt
>
>
> I have put a robots.txt file in the root of my site to stop it from
> accessing subdirectories. But GoogleBot is still accessing all
> the files in
> my root bit some of the files do not run without passing a
> variable to them.
> So my Application Logfile is full of errors.
>
> So I want to know if it is a good idea to put this in my Application.cfm
> file?
>
>  (+http://www.googlebot.com/bot.html)'>
>
> 
>  
> Site Title
>
> 
>
>   
> 
>
> Text from the About page
>
> 
> 
> 
> 
>
>
> This way Google gets to spider all pages and I don't get any errors.
>
> Rick
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



CF4.5 C++ Runtime Library error

2002-11-26 Thread Sean A Corfield
On Tuesday, Nov 26, 2002, at 15:30 US/Pacific, Haggerty, Mike wrote:
> How's it going? Long time no hear. How was Devcon?

DevCon was awesome - see my blog! :)

> Since you're the last person from Macromedia I know, I was wondering 
> if you
> knew anyone who could help me with an issue I am running into?

Well, I've never even seen CF4.5 but I hope someone here on cf-talk can 
help.

> 1) The processor runs up to 100% on the server.
> 2) An alert box shoots up on the screen. The title is 'C++ Runtime 
> Library'.
> 3) The text of the message is:
> 'Runtime Error!
> Program: c:\cfusion\bin\cfserver.exe
> R6025
> Pure Virtual Function Call'
> 4) Processor remains at 100% until you click the box, at which point 
> the
> server returns to normal, retaining the application scope in memory.

I will hazard a guess that the 100% CPU is related to the alert polling 
for a keyboard / mouse event to acknowledge and go away. That's not 
your problem.

The "Pure Virtual Function Call" error is a standard C++ issue. 
Something has attempted to call a method on a class for which no 
implementation exists. My first suspicion would be a C++ CFX tag...

> I think it may be related to one page in my application, but I am not
> certain if that is the case or not.

Can you isolate it to that page by running test? That would be a big 
help.

> This one is really a pain and I am not sure how to troubleshoot it. 
> Any help
> would be appreciated.

As I say, my first suspicion would be a badly written CFX tag.


Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.corfield.org/blog/

Introducing Macromedia Contribute. Web publishing for everyone.
Learn more at http://www.macromedia.com/contribute

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: activePDF

2002-11-26 Thread Jeffry Houser
  I have only used the ActivePDF toolkit.
  It is really really really easy to get up and running.
  It uses COM.  My experience with ActivePDF is that it has no problems 
with CFMX.  As near as I can tell, that makes me the only living person in 
existence who has been able to successfully use a COM object w/ CFMX.

  I'm not sure about competitors, but I do know that there are other ways 
to generate PDFs on the fly.

At 10:00 PM 11/26/2002 -0500, you wrote:
>hi list.
>
>whats the pro's / con's of activePDF?
>
>competitors?
>
>thanks!
>
>...tony
>
>tony weeg
>[EMAIL PROTECTED]
>www.revolutionwebdesign.com
>rEvOlUtIoN wEb DeSiGn
>410.334.6331
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: CFMX Server -Java class

2002-11-26 Thread Sean A Corfield
On Tuesday, Nov 26, 2002, at 16:31 US/Pacific, Dick Applebaum wrote:
> You recompile a Java class file that is referenced by cfobject.
>
> I am told that you must recycle CFMX for the updated class file to be
> recognized.

Not if it is in a 'hot deploy' directory is my understanding (this has 
been discussed here before but I don't recall the exact details).

> Is this a bug or a feature?

A feature.

> If this is true, what does a high-traffic, clustered production system
> do when they
> need to change a Java program (say to fix a bug, or a security
> exposure).

They drop and restart each server in the cluster. Normally production 
systems do not use 'hot deploy' because of the performance overhead 
involved in 'watching' a hot deploy directory.

> What about CFMXj2ee running on JRun, webSphere, ant the like?

See above for clusters - some of those systems support session 
replication / failover. That means zero downtime for this sort of 
upgrade.

> What about Pure Java/JSP systems on these app servers?

Same.

Sean A Corfield -- Director, Architecture
Web Technology Group -- Macromedia, Inc.
tel: (415) 252-2287 -- cell: (415) 717-8473
aim: seancorfield -- http://www.macromedia.com
An Architect's View -- http://www.corfield.org/blog/

Introducing Macromedia Contribute. Web publishing for everyone.
Learn more at http://www.macromedia.com/contribute

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



activePDF

2002-11-26 Thread Tony Weeg
hi list.

whats the pro's / con's of activePDF?

competitors?

thanks!

...tony

tony weeg
[EMAIL PROTECTED]
www.revolutionwebdesign.com
rEvOlUtIoN wEb DeSiGn
410.334.6331 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Using a counter variable

2002-11-26 Thread Eric Dawson






   
   Survey Link




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Using a counter variable

2002-11-26 Thread Mosh Teitelbaum
Aimee:

Looks like you're mixing code from a number of different suggestions.  There
were some good suggestions, but some parts do not work well or are not
needed with other parts.  First, the answer to your question, and then some
complete (but untested) code.

The reason why you're always getting the survey link is because of the
following code:

The MOD operator returns the remainder when one integer is divided by
another integer (remember long division?).  So, for example, 5 MOD 2 = 1,
because
2 (a) goes into 5 two (b) times,
2 (a) x 2 (b) = 4 (c),
and 5 - 4 (c) = 1

In your case, APPLICATION.Counter is initially set to 0.  0 MOD 7 = 0
because 7 goes into 0 zero times and has a remainder of 0.  So the above
CFIF statement is always true.

Now, the "complete" code (which is not really complete because I'm going to
leave out the CFMAIL stuff and just use a comment to show where the link is
supposed to go 8^>):

Application.cfm:










ActionPage.cfm:






















Hope this works for you.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 5:42 PM
> To: CF-Talk
> Subject: RE: Using a counter variable
>
>
> Mosh,
>   I tried this and it did work, but, it's still showing my survey link
> even though the counter has been set back to 0. Can you tell why?
>
> 
>   
> 
>
> 
>   
>   
>   
>  from="[EMAIL PROTECTED]"
> subject="Closed Help Desk Ticket"
> type="HTML">
>   Your Help Desk call (Ticket No. #GetCall.ID#) has been
> closed.  If you believe the call should not be closed, or the
> problem occurs
> again, please reply to this message or call the Help Desk, to let us know.
> 
> Call Information
> Ticket Number:  #GetCall.ID#
> Problem Description:  
> #GetCall.Issue#
> Resolution: 
> #GetCall.Resolution#
> 
>  href="http://dailynews/helpdesk/test/HDSurvey.cfm?ID=#ID#";
> target="_blank">Click here to answer a brief survey about your issue and
> resolution.
> #counter#
> 
>
> 
> 
>   
> 
>  from="[EMAIL PROTECTED]"
> subject="Closed Help Desk Ticket"
> type="HTML">
>   Your Help Desk call (Ticket No. #GetCall.ID#) has been
> closed.  If you believe the call should not be closed, or the
> problem occurs
> again, please reply to this message or call the Help Desk, to let us know.
> 
> Call Information
> Ticket Number:  #GetCall.ID#
> Problem Description:  
> #GetCall.Issue#
> Resolution: 
> #GetCall.Resolution#
> 
> #counter#
> 
> 
>
> Thank you,
>   Aimee' Clark
>
> -Original Message-
> From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 3:41 PM
> To: CF-Talk
> Subject: RE: Using a counter variable
>
>
> You haven't made your counter variable persistent.  Every time
> someone makes
> a new request of your application, Application.cfm creates a new variable
> called "counter" and sets it equal to 0.  You need to make your variable
> persistent.  And since you want it to work across multiple users,
> it should
> probably persist in the APPLICATION scope.
>
> So, your Application.cfm should look something like:
>
>   
>   
>   
>   
>   
>
> Your action page should look something like:
>
>   
>   
>   
>   
>
>   
>   
>   
>   
>   
>
>   
>   
>   
>   
>1>
>   
>   
>
>
> --
> Mosh Teitelbaum
> evoch, LLC
> Tel: (301) 625-9191
> Fax: (301) 933-3651
> Email: [EMAIL PROTECTED]
> WWW: http://www.evoch.com/
>
>
> > -Original Message-
> > From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 4:03 PM
> > To: CF-Talk
> > Subject: Using a counter variable
> >
> >
> > I have an application in which I want every 7th record closed in
> > a table to
> > generate an email asking the user to participate in a survey.
> >
> > I have  in the application.cfm file.
> >
> > I have  in my action page right after
> > an update
> > that is done to the table.
> >
> > Then I have 
> > execute generating email
> > then it resets the counter back to 0
> >
> > However my counter is not incrementing at all. It just keep
> staying at 1.
> > I'm not sure why. Can someone provide some assistance with this?
> >
> > Thank you,
> > Aimee' Clark
> > Web Developer
> > Stinson Morrison Hecker
> >
> >
>
> 

GoogleBot Robot.txt

2002-11-26 Thread cfhelp
I have put a robots.txt file in the root of my site to stop it from
accessing subdirectories. But GoogleBot is still accessing all the files in
my root bit some of the files do not run without passing a variable to them.
So my Application Logfile is full of errors.

So I want to know if it is a good idea to put this in my Application.cfm
file?

http://www.googlebot.com/bot.html)'>


 
Site Title



  


Text from the About page







This way Google gets to spider all pages and I don't get any errors.

Rick
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



security question

2002-11-26 Thread michael firth
Hey gang out there in CF land,

Got a question for a security application I am doing up, plus also cure my curiousity. 
 You see the security app I am building I would like to include some sort of safeguard 
that allows or prevents people from collecting emails, but in order to do that I need 
to know how they do that process.

I thought about it and would think that access the Registry but am not totally sure.  
If anybody has any thoughts to share just let me know.

Mike Firth

 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



CFMX Server -Java class

2002-11-26 Thread Dick Applebaum
Nobody answered these questions under another thread, so I'll post 
again.

You recompile a Java class file that is referenced by cfobject.

I am told that you must recycle CFMX for the updated class file to be 
recognized.

Is this a bug or a feature?

If this is true, what does a high-traffic, clustered production system 
do when they
need to change a Java program (say to fix a bug, or a security 
exposure).

Do they need to restart the entire system?

What about CFMXj2ee running on JRun, webSphere, ant the like?

What about Pure Java/JSP systems on these app servers?

TIA

Dick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: Java in CF (CFMX)

2002-11-26 Thread Dick Applebaum
On Tuesday, November 26, 2002, at 03:25 PM, Jochem van Dieten wrote:

>
>> Are you saying that you need to restart CFMX to install a new Java
>> class.
>
> IIRC it is a setting somewhere, search the archive.
>
>

I don't understand this response -- How can I avoid restarting CFMX OS 
X (Linux)
to recognize newly compiled Java class files in .../WEB-INF/classes ?

TIA

Dick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: Java in CF (CFMX)

2002-11-26 Thread Dick Applebaum
On Tuesday, November 26, 2002, at 03:17 PM, Jochem van Dieten wrote:

> Dick Applebaum wrote:
>
>> Someone (maybe me), posted that strong typing in CFML would allow the
>> CF parser to generate better Java code.
>
> Not the current one.

Yes, that was understood  -- but CFML typing would allow the CF Parser 
to be updated to take typing into consideration when generating the 
Java code.

> Steps are irrelevant. Time is the question.

I don't entirely agree with -- if you are subject to interruption (e.g. 
a one-man-shop), the fewer the steps the fewer chances for errors.
>
> And if it is really that big an issue, your need to submit an
> enhancement request for you Java editor that is needs a button to
> publish (save and compile) the code. And if your CFML source editing
> environment is sufficiently smart/programmable it could just parse out
> an inline Java tag you defined yourself, move averything inside it to a
> java, compile it and translate the cf_inlinejava tag to the appropriate
> cfobject call.

I primarily use BBEdit -- It probably has this capability -- Never used 
it with a compiled language, so never needed this feature.

I also have Jedit.

Between the two, this can probably be accomplished -- good suggestion!

> Thanks

Dick

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Java in CF (CFMX)

2002-11-26 Thread Rob Rohan
either
International Internet Recruiting Consultants

or

"If I Recall Correctly"



Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:08 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


What is IIRC?

On Tuesday, November 26, 2002, at 03:25 PM, Jochem van Dieten wrote:

> IIRC it is a setting somewhere, search the archive.


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Java in CF (CFMX)

2002-11-26 Thread Dick Applebaum
What is IIRC?

On Tuesday, November 26, 2002, at 03:25 PM, Jochem van Dieten wrote:

> IIRC it is a setting somewhere, search the archive.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



CFCHART - how to use it with lists?

2002-11-26 Thread Dustin Snell [Unisyn Software, LLC]
Hi all. I am having trouble understanding how to use CFCHART.  Before I was
using the BarChart.class Java applets to do this and all I had to do was
supply it with a two lists - items and values - and it worked.  Can somebody
give me some sample code that would allow me to make a chart out of these
two lists with the CFCHART tag?

Thanks in advance.

Dustin Snell
Unisyn Software, LLC
http://www.unisyn.com
The Leader In Windows Automation


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



cfmail and html encoding

2002-11-26 Thread Peter Mayer
Hello!

I am sending out an email with cfmail and the message type "html". I have 

encoded the "special" chars like ü, ö, ä, & and so on in the body part 
with 
the correspondending html elements (f.e. ö) but when the email gets 
out the recipient all changes are undone and in the email is written "ö".

As a consequence I have tried to add charset definitions and so on but 
nothing helped. How can I stop cfmail to auto-replace?

Best regards,

Peter 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Server Problems When Code is Not Locked (was RE: Application vari ables)

2002-11-26 Thread Mike Brunt
Mike what service pack are you on with CF4.5, the reason I ask is that
Service Pack 2 was significantly better.

Kind Regards - Mike Brunt, CTO
Webapper
Blog http://www.webapper.net
Web site http://www.webapper.com
Downey CA Office
562.243.6255
AIM - webappermb

Web Application Specialists


-Original Message-
From: Haggerty, Mike [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 11:32 AM
To: CF-Talk
Subject: RE: Server Problems When Code is Not Locked (was RE:
Application vari ables)


Doug;

Thanks for the reply.

Except for some custom modules I am not concerned with at this time, the
main application really only uses heavy SQL on one page (the one where it
places all the structures in the application scope). There it runs 26
queries, all of which take some time to run and return large amounts of
data.

The funny thing is, there has never been an error on this page. It always
runs as expected, the errors come on other pages.

Right now, the average time for a page to generate in the system is just
under 60 ms (but I think this is going up with the new data locking scheme).

There are no CFX tags in this part of the application (there is an ArcIMS
interface, part of a custom module I have put off dealing with until the
main application is under control).

I did just rewrite the application in Fusebox, though, which makes use of
custom tags in the core files...

Hopefully this is not the problem. The application is running on CF 4.5 on
NT4.

M

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 1:26 PM
To: CF-Talk
Subject: RE: Server Problems When Code is Not Locked (was RE:
Application vari ables)


In my experience, PCode errors were usually the result of not using cflocks
where needed.  IMHO, you are on the right track moving schtuff to the
request scope.  From an earlier posting by Mike Brunt, and what  I do in my
apps, I'd suggest using

In Application.cfm





In OnRequestEnd.cfm





The onrequestend bit adds any NEW vars you introduced in the request scope
to be added to the session scope.  This way you need only use CFLOCK twice
in your whole application.  Be careful of CFABORT use with this though.

As for these errors
>-
>Request cancelled or ignored by serverServer busy or unable to fulfill
>request. The server is unable to fulfill your request due to
>extremely high
>traffic or an unexpected internal error.
>-

Check your page 'weight'.  Are you running heavy SQL?  CFX tags?  You may
need to tweak your SQL to run better and also play with the number of
simultaneous request limit in the CFADMIN tool.  What you set this at
depends on what your app does.  I have it set to 10 threads per CPU as my
app is very DB intense.  Others set this to 3-4 per CPU.  Also look at your
request timeout limit.

HTH

Doug



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Java in CF (CFMX)

2002-11-26 Thread Rob Rohan
I am still for  mind you.

Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:17 PM
To: CF-Talk
Subject: RE: Java in CF (CFMX)


Again, I could be totally misinformed - I only write cfx_ tags at home with
a dev edition and it's not too bad typing

$/opt/coldfusionmx/bin/coldfusion stop
$/opt/coldfusionmx/bin/coldfusion start

(i dont trust restart)

Then take them to work and acctuallly add them to live server (which I
restart)

But I would dig auto-reload - if it's not already there.


Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:03 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


Rob


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Pure Virtual Function Call

2002-11-26 Thread Jochem van Dieten
Haggerty, Mike wrote:

> First off, this is a SERVICE causing this to happen. I thought 
> services were not supposed to throw alerts up on the screen, but 
> instead dump their messages into a log file (especially error 
> messages). Am I wrong?

Depends on the "interact with desktop" setting in the services window.

Jochem

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Pure Virtual Function Call

2002-11-26 Thread Dave Watts
> My suspicion is that this has been happening for a 
> while, and that, somehow, the little C++ window is 
> only coming up when someone is logged in to the server 
> or when the server knows I am working on the application.

System messages like this will only show up when a user logs in
interactively (as opposed to remotely).

> First off, this is a SERVICE causing this to happen. I 
> thought services were not supposed to throw alerts up 
> on the screen, but instead dump their messages into a 
> log file (especially error messages). Am I wrong?

A service can interact with the desktop, in more ways than one.

> Secondly, does anyone know what is causing this to happen 
> or how to fix it?

I used to see that quite a bit, especially under load. I saw it a lot less
after upgrading to CF 4.5.1 SP2. I was never able to isolate specific bits
of CFML code as the cause of the problem.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Hi there

2002-11-26 Thread Haggerty, Mike
Sorry, that was meant as personal correspondence.

M

-Original Message-
From: Haggerty, Mike [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 6:30 PM
To: CF-Talk
Subject: Hi there


Sean;

How's it going? Long time no hear. How was Devcon?

..
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Hi there

2002-11-26 Thread Haggerty, Mike
Sean;

How's it going? Long time no hear. How was Devcon?

Since you're the last person from Macromedia I know, I was wondering if you
knew anyone who could help me with an issue I am running into?

I have an installation of CF 4.5 on NT 4 that is behaving bizarrely.

The following keeps happening, and I have no clue why: 

1) The processor runs up to 100% on the server.
2) An alert box shoots up on the screen. The title is 'C++ Runtime Library'.
3) The text of the message is: 
'Runtime Error!
Program: c:\cfusion\bin\cfserver.exe
R6025
Pure Virtual Function Call'
4) Processor remains at 100% until you click the box, at which point the
server returns to normal, retaining the application scope in memory.

I think it may be related to one page in my application, but I am not
certain if that is the case or not. Now, I do have a lot of data stored in
the application scope, but no more than I have used in other applications on
other servers. 

This one is really a pain and I am not sure how to troubleshoot it. Any help
would be appreciated.

Thanks,
M




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Java in CF (CFMX)

2002-11-26 Thread Joe Eugene
Dick.. 
This is known problem when you work with Java Classes, i never got the
configuration right to do *HOTLOAD*.. Sean was going to help out.. but i think
he is busy.

Temp Solution.
Every time, you re-compile the Java File, you have STOP-RESTART CFMX Service.
This will resolve that.

Joe

On Tue, 26 Nov 2002 14:20:56 -0800 Dick Applebaum <[EMAIL PROTECTED]> wrote:

> Joe
> 
> I  have been modifing with your Java code to
> return tables and columns  
> and I ran into a
> weird situation.
> 
> for convenience, I put the ,java file in
> WEB-INF/classes
> 
> I recompile the program and get a class file
> 
> I run the CF template, but get the old version
> of the class file
> 
> I even deleted the class file -- something is
> being cached, somewhere  
> -- Where?
> 
> TIA
> 
> Dick
> 
> 
> 
> 
> On Tuesday, November 26, 2002, at 01:35 PM, Joe
> Eugene wrote:
> 
> > Dick
> >
> > No problem, i got the same solution working
> with MM,MS-SQL and Oracle  
> > drivers
> > without any problem.
> >> You, likely, saved me several hours of
> >> frustration.
> > Now the ideal solution would be to return
> Complex
> > Objects/Types(Structs,ResultSets) back to
> CFMX. Havent had a chance to  
> > play
> > with Structs(CFMX-Java) compatibility.
> >
> >> Is there value to the Java developer (new or
> >> experienced) to inline
> >> code -- Yes,
> >
> > I understand your need. A while ago, we
> looked at the generated Java  
> > code(Real
> > Ugly!) from a *.cfm page. A lot of ugly
> wrappers coverting loose *.cfm  
> > TYPES
> > to strong Java Types..(Result..Slow
> pages)(Topic Jsp vs Cfm).
> >
> > InLine Java Code.
> > If this ever happens, ideally.. CFMX complier
> should create a helper  
> > class
> > file and let Java Complier, compile it like a
> Jsp page.. this would be
> > excellent.. but again IS'nt CfObject doing
> the same thing?(seperating  
> > the
> > helper/model class from presentation)...Am
> trying to relate to "Inline  
> > Java"..
> > So what overall advantage do we get with
> Inline Java? Any  
> > Performance...?
> > other than coding between CF/Java in
> templates?
> >
> > I am not against InLine Java.. just trying to
> understand the Mechanics.
> >
> > Joe
> >
> > On Tue, 26 Nov 2002 07:10:11 -0800 Dick
> Applebaum   
> > wrote:
> >
> >> Joe
> >>
> >> Your example, does, in fact work.
> >>
> >> Of course, I needed to modify the Java code
> to
> >> specify a different
> >> database --
> >> none of the MS databases appear to work on
> Mac
> >> OS X (or and non-win
> >> platform) :)
> >>
> >> This is enough to get me started -- I will
> add
> >> the flexibility to the
> >> interface so it
> >> will work with any JDBC driver, and any
> >> MetaData request.
> >>
> >> Thanks
> >>
> >> I have never written a wrapper for a Java
> >> program & it helps to start
> >> with a
> >> working example, and concise instructions.
> >>
> >> You, likely, saved me several hours of
> >> frustration.
> >>
> >> I think that implementing and deploying this
> >> example is a good
> >> illustration of the
> >> value of inline Java.
> >>
> >> Someone new to Java, like myself, could take
> >> your example and drop it
> >> into a simpleCF template,
> >> between  tags.  Then they could add the CFML
> >> portion in the
> >> same template. More likely,
> >> you would have provided a complete,
> standalone
> >> CF Template with the
> >> Java code, inline.
> >>
> >> Then they could save and test the template
> >> without concern for:
> >>
> >> 1) Separating your file into its Java
> and
> >> CFML component parts.
> >>
> >> 2) Where to put the Java source
> >>
> >> 3) How to compile the Java class
> >>
> >> 4) Which Java compiler options to use
> and
> >> their proper settings --
> >>  things such as:
> >>
> >> Usage: javac
> >> where possible options include:
> >>-g   
> Generate
> >> all debugging info
> >>-g:none  
> Generate
> >> no debugging info
> >>-g:{lines,vars,source}   
> Generate
> >> only some debugging info
> >>-O   
> Optimize;
> >> may hinder debugging or
> >> enlarge class file
> >>-nowarn  
> Generate
> >> no warnings
> >>-verbose  Output
> >> messages about what the
> >> compiler is doing
> >>-deprecation  Output
> >> source locations where
> >> deprecated APIs are used
> >>-classpath  Specify where
> to
> >> find user class
> >> files
> >>-sourcepath Specify where
> to
> >> find input source
> >> files
> >>-bootclasspath  Override
> >> location of bootstrap
> >> class files
> >>-extdirsOverride
> >> location of installed
> >> extensions
> >>-d Specify where to
> >> place generated
> >> class files
> >>-encoding   Specify character
> >> encoding used by
> >> source files
> >>   

Re: Using a counter variable

2002-11-26 Thread Dina Hess
Aimee,

This works for me:





 
  
 










 
  
 



 




 Counter = #counter#
 Survey Link

 Counter = #counter#


~Dina

  - Original Message - 
  From: Clark, Aimee 
  To: CF-Talk 
  Sent: Tuesday, November 26, 2002 4:42 PM
  Subject: RE: Using a counter variable


  Mosh,
  I tried this and it did work, but, it's still showing my survey link
  even though the counter has been set back to 0. Can you tell why?

  
  
  

  
  
  
  
  
  Your Help Desk call (Ticket No. #GetCall.ID#) has been
  closed.  If you believe the call should not be closed, or the problem occurs
  again, please reply to this message or call the Help Desk, to let us know.
  
  Call Information
  Ticket Number:  #GetCall.ID#
  Problem Description:  
  #GetCall.Issue#
  Resolution: 
  #GetCall.Resolution#
  
  http://dailynews/helpdesk/test/HDSurvey.cfm?ID=#ID#";
  target="_blank">Click here to answer a brief survey about your issue and
  resolution.
  #counter#
  

  
  
  
  
  
  Your Help Desk call (Ticket No. #GetCall.ID#) has been
  closed.  If you believe the call should not be closed, or the problem occurs
  again, please reply to this message or call the Help Desk, to let us know.
  
  Call Information
  Ticket Number:  #GetCall.ID#
  Problem Description:  
  #GetCall.Issue#
  Resolution: 
  #GetCall.Resolution#
  
  #counter#
  
  

  Thank you,
  Aimee' Clark

  -Original Message-
  From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 26, 2002 3:41 PM
  To: CF-Talk
  Subject: RE: Using a counter variable


  You haven't made your counter variable persistent.  Every time someone makes
  a new request of your application, Application.cfm creates a new variable
  called "counter" and sets it equal to 0.  You need to make your variable
  persistent.  And since you want it to work across multiple users, it should
  probably persist in the APPLICATION scope.

  So, your Application.cfm should look something like:

  
  
  
  
  

  Your action page should look something like:

  
  
  
  

  
  
  
  
  

  
  
  
  
  
  
  


  --
  Mosh Teitelbaum
  evoch, LLC
  Tel: (301) 625-9191
  Fax: (301) 933-3651
  Email: [EMAIL PROTECTED]
  WWW: http://www.evoch.com/


  > -Original Message-
  > From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, November 26, 2002 4:03 PM
  > To: CF-Talk
  > Subject: Using a counter variable
  >
  >
  > I have an application in which I want every 7th record closed in
  > a table to
  > generate an email asking the user to participate in a survey.
  >
  > I have  in the application.cfm file.
  >
  > I have  in my action page right after
  > an update
  > that is done to the table.
  >
  > Then I have 
  > execute generating email
  > then it resets the counter back to 0
  >
  > However my counter is not incrementing at all. It just keep staying at 1.
  > I'm not sure why. Can someone provide some assistance with this?
  >
  > Thank you,
  > Aimee' Clark
  > Web Developer
  > Stinson Morrison Hecker
  >
  > 

  
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Pure Virtual Function Call

2002-11-26 Thread Haggerty, Mike
I am running into serious issues with CF 4.5 on an NT 4 box.

There is this one application running on the box and somehow it is causing
the following to happen: 

1) The processor runs up to 100% on the server.
2) An alert box shoots up on the screen. The title is 'C++ Runtime Library'.
3) The text of the message is: 
'Runtime Error!
Program: c:\cfusion\bin\cfserver.exe
R6025
Pure Virtual Function Call'
4) Processor remains at 100% until you click the box, at which point the
server returns to normal, retaining the application scope in memory.

My suspicion is that this has been happening for a while, and that, somehow,
the little C++ window is only coming up when someone is logged in to the
server or when the server knows I am working on the application.

First off, this is a SERVICE causing this to happen. I thought services were
not supposed to throw alerts up on the screen, but instead dump their
messages into a log file (especially error messages). Am I wrong?

Secondly, does anyone know what is causing this to happen or how to fix it?
Thanks for not mentioning the need to migrate to Linux, and I can post code
if necessary.

Thanks,
M

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Java in CF (CFMX)

2002-11-26 Thread Jochem van Dieten
Dick Applebaum wrote:

> Are you saying that you need to restart CFMX to install a new Java
> class.

IIRC it is a setting somewhere, search the archive.

Jochem

PS Some deleting of ancient messages on the bottom would be nice. Just 
look at the mess this thread leaves in the archives to see why.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Java in CF (CFMX)

2002-11-26 Thread Jochem van Dieten
Dick Applebaum wrote:

> Someone (maybe me), posted that strong typing in CFML would allow the 
> CF parser to generate better Java code.

Not the current one.

> Say you want to change the program(s) slightly so they return a list 
> of db tables, and the columns within each table.  On the presentation 
> side, you want to display the combined list in a select box.
>
> Here' s what you do, presently:
>
> 1) display the Java source
> 2) modify the Java source.
> 3) save the Java source
> 4) switch to a CLI window
> 5) compile the Java source
> 6) switch to the CF source
> 7) modify the CF source
> 8) save the CF source
> 9) switch to a browser window
> 10) invoke the cf template
>
> Here's what you would do with inline Java
>
> 1) display the combined  CF source with the inlineJava source
> 2) modify the inline Java source.
> 3) modify the CF source
> 4) save the combined  CF source with the inlineJava source
> 5) switch to a browser window
> 6) invoke the cf template
>
> Now, you might say "You only save 4 steps!! -- but that's 40% of the
> steps.

Steps are irrelevant. Time is the question.

And if it is really that big an issue, your need to submit an 
enhancement request for you Java editor that is needs a button to 
publish (save and compile) the code. And if your CFML source editing 
environment is sufficiently smart/programmable it could just parse out 
an inline Java tag you defined yourself, move averything inside it to a 
java, compile it and translate the cf_inlinejava tag to the appropriate 
cfobject call.

For the advantages on the code editing you mention here, you just need a 
better code editor, not better server side components.

Jochem

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Java in CF (CFMX)

2002-11-26 Thread Rob Rohan
Again, I could be totally misinformed - I only write cfx_ tags at home with
a dev edition and it's not too bad typing

$/opt/coldfusionmx/bin/coldfusion stop
$/opt/coldfusionmx/bin/coldfusion start

(i dont trust restart)

Then take them to work and acctuallly add them to live server (which I
restart)

But I would dig auto-reload - if it's not already there.


Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:03 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


Rob

Are you saying that you need to restart CFMX to install a new Java
class.

Now there's a convenient, user-friendly, implementation.

If what you say is true, I think you have just made the case for inline
Java -- at least for developers

Do you mean that a CF production house, running clusters, and all that,
need to recycle the whole system, say just to fix a bug in a Java tag?

Do people put up with this?

Is this true of CFMXJ2ee?

Is this true on pure Java appservers like WebSphere, etc?


I recycled CFMX & the new Java class was recognized.

-- Head shaking in disbelief---

Dick


On Tuesday, November 26, 2002, at 02:29 PM, Rob Rohan wrote:

> ah, the fun of writting cf java tags. After you make a change and
> recompile,
> you'll need to cycle the service to re-read the class file...
>
> unless there is a better way that I don't know about.
>
>
> Rob
>
> http://treebeard.sourceforge.net
> http://ruinworld.sourceforge.net
> Scientia Est Potentia
>
> -Original Message-
> From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:21 PM
> To: CF-Talk
> Subject: Re: Java in CF (CFMX)
>
>
> Joe
>
> I  have been modifing with your Java code to return tables and columns
> and I ran into a
> weird situation.
>
> for convenience, I put the ,java file in WEB-INF/classes
>
> I recompile the program and get a class file
>
> I run the CF template, but get the old version of the class file
>
> I even deleted the class file -- something is being cached, somewhere
> -- Where?
>
> TIA
>
> Dick
>
>
>
>
> On Tuesday, November 26, 2002, at 01:35 PM, Joe Eugene wrote:
>
>> Dick
>>
>> No problem, i got the same solution working with MM,MS-SQL and Oracle
>> drivers
>> without any problem.
>>> You, likely, saved me several hours of
>>> frustration.
>> Now the ideal solution would be to return Complex
>> Objects/Types(Structs,ResultSets) back to CFMX. Havent had a chance to
>> play
>> with Structs(CFMX-Java) compatibility.
>>
>>> Is there value to the Java developer (new or
>>> experienced) to inline
>>> code -- Yes,
>>
>> I understand your need. A while ago, we looked at the generated Java
>> code(Real
>> Ugly!) from a *.cfm page. A lot of ugly wrappers coverting loose *.cfm
>> TYPES
>> to strong Java Types..(Result..Slow pages)(Topic Jsp vs Cfm).
>>
>> InLine Java Code.
>> If this ever happens, ideally.. CFMX complier should create a helper
>> class
>> file and let Java Complier, compile it like a Jsp page.. this would be
>> excellent.. but again IS'nt CfObject doing the same thing?(seperating
>> the
>> helper/model class from presentation)...Am trying to relate to "Inline
>> Java"..
>> So what overall advantage do we get with Inline Java? Any
>> Performance...?
>> other than coding between CF/Java in templates?
>>
>> I am not against InLine Java.. just trying to understand the
>> Mechanics.
>>
>> Joe
>>
>> On Tue, 26 Nov 2002 07:10:11 -0800 Dick Applebaum <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Joe
>>>
>>> Your example, does, in fact work.
>>>
>>> Of course, I needed to modify the Java code to
>>> specify a different
>>> database --
>>> none of the MS databases appear to work on Mac
>>> OS X (or and non-win
>>> platform) :)
>>>
>>> This is enough to get me started -- I will add
>>> the flexibility to the
>>> interface so it
>>> will work with any JDBC driver, and any
>>> MetaData request.
>>>
>>> Thanks
>>>
>>> I have never written a wrapper for a Java
>>> program & it helps to start
>>> with a
>>> working example, and concise instructions.
>>>
>>> You, likely, saved me several hours of
>>> frustration.
>>>
>>> I think that implementing and deploying this
>>> example is a good
>>> illustration of the
>>> value of inline Java.
>>>
>>> Someone new to Java, like myself, could take
>>> your example and drop it
>>> into a simpleCF template,
>>> between  tags.  Then they could add the CFML
>>> portion in the
>>> same template. More likely,
>>> you would have provided a complete, standalone
>>> CF Template with the
>>> Java code, inline.
>>>
>>> Then they could save and test the template
>>> without concern for:
>>>
>>> 1) Separating your file into its Java and
>>> CFML component parts.
>>>
>>> 2) Where to put the Java source
>>>
>>> 3) How to compile the Java class
>>>
>>> 4) Which Java compiler options to use and
>>> their proper settings --
>>>  things such as:
>>

Re: Java in CF (CFMX)

2002-11-26 Thread Dick Applebaum
Rob

Are you saying that you need to restart CFMX to install a new Java  
class.

Now there's a convenient, user-friendly, implementation.

If what you say is true, I think you have just made the case for inline  
Java -- at least for developers

Do you mean that a CF production house, running clusters, and all that,  
need to recycle the whole system, say just to fix a bug in a Java tag?

Do people put up with this?

Is this true of CFMXJ2ee?

Is this true on pure Java appservers like WebSphere, etc?


I recycled CFMX & the new Java class was recognized.

-- Head shaking in disbelief---

Dick


On Tuesday, November 26, 2002, at 02:29 PM, Rob Rohan wrote:

> ah, the fun of writting cf java tags. After you make a change and  
> recompile,
> you'll need to cycle the service to re-read the class file...
>
> unless there is a better way that I don't know about.
>
>
> Rob
>
> http://treebeard.sourceforge.net
> http://ruinworld.sourceforge.net
> Scientia Est Potentia
>
> -Original Message-
> From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:21 PM
> To: CF-Talk
> Subject: Re: Java in CF (CFMX)
>
>
> Joe
>
> I  have been modifing with your Java code to return tables and columns
> and I ran into a
> weird situation.
>
> for convenience, I put the ,java file in WEB-INF/classes
>
> I recompile the program and get a class file
>
> I run the CF template, but get the old version of the class file
>
> I even deleted the class file -- something is being cached, somewhere
> -- Where?
>
> TIA
>
> Dick
>
>
>
>
> On Tuesday, November 26, 2002, at 01:35 PM, Joe Eugene wrote:
>
>> Dick
>>
>> No problem, i got the same solution working with MM,MS-SQL and Oracle
>> drivers
>> without any problem.
>>> You, likely, saved me several hours of
>>> frustration.
>> Now the ideal solution would be to return Complex
>> Objects/Types(Structs,ResultSets) back to CFMX. Havent had a chance to
>> play
>> with Structs(CFMX-Java) compatibility.
>>
>>> Is there value to the Java developer (new or
>>> experienced) to inline
>>> code -- Yes,
>>
>> I understand your need. A while ago, we looked at the generated Java
>> code(Real
>> Ugly!) from a *.cfm page. A lot of ugly wrappers coverting loose *.cfm
>> TYPES
>> to strong Java Types..(Result..Slow pages)(Topic Jsp vs Cfm).
>>
>> InLine Java Code.
>> If this ever happens, ideally.. CFMX complier should create a helper
>> class
>> file and let Java Complier, compile it like a Jsp page.. this would be
>> excellent.. but again IS'nt CfObject doing the same thing?(seperating
>> the
>> helper/model class from presentation)...Am trying to relate to "Inline
>> Java"..
>> So what overall advantage do we get with Inline Java? Any
>> Performance...?
>> other than coding between CF/Java in templates?
>>
>> I am not against InLine Java.. just trying to understand the  
>> Mechanics.
>>
>> Joe
>>
>> On Tue, 26 Nov 2002 07:10:11 -0800 Dick Applebaum <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Joe
>>>
>>> Your example, does, in fact work.
>>>
>>> Of course, I needed to modify the Java code to
>>> specify a different
>>> database --
>>> none of the MS databases appear to work on Mac
>>> OS X (or and non-win
>>> platform) :)
>>>
>>> This is enough to get me started -- I will add
>>> the flexibility to the
>>> interface so it
>>> will work with any JDBC driver, and any
>>> MetaData request.
>>>
>>> Thanks
>>>
>>> I have never written a wrapper for a Java
>>> program & it helps to start
>>> with a
>>> working example, and concise instructions.
>>>
>>> You, likely, saved me several hours of
>>> frustration.
>>>
>>> I think that implementing and deploying this
>>> example is a good
>>> illustration of the
>>> value of inline Java.
>>>
>>> Someone new to Java, like myself, could take
>>> your example and drop it
>>> into a simpleCF template,
>>> between  tags.  Then they could add the CFML
>>> portion in the
>>> same template. More likely,
>>> you would have provided a complete, standalone
>>> CF Template with the
>>> Java code, inline.
>>>
>>> Then they could save and test the template
>>> without concern for:
>>>
>>> 1) Separating your file into its Java and
>>> CFML component parts.
>>>
>>> 2) Where to put the Java source
>>>
>>> 3) How to compile the Java class
>>>
>>> 4) Which Java compiler options to use and
>>> their proper settings --
>>>  things such as:
>>>
>>> Usage: javac
>>> where possible options include:
>>>-gGenerate
>>> all debugging info
>>>-g:none   Generate
>>> no debugging info
>>>-g:{lines,vars,source}Generate
>>> only some debugging info
>>>-OOptimize;
>>> may hinder debugging or
>>> enlarge class file
>>>-nowarn   Generate
>>> no warnings
>>>-verbose  Output
>>> messages about what the
>>> compiler is doing
>>>-deprecation  Output

Re: Java in CF (CFMX)

2002-11-26 Thread Dick Applebaum
On Tuesday, November 26, 2002, at 01:35 PM, Joe Eugene wrote:

> I understand your need. A while ago, we looked at the generated Java 
> code(Real
> Ugly!) from a *.cfm page. A lot of ugly wrappers coverting loose *.cfm 
> TYPES
> to strong Java Types..(Result..Slow pages)(Topic Jsp vs Cfm).
>

I remember that thread -- the generated Java code was "Slow & Ugly".

Someone (maybe me), posted that strong typing in CFML would allow the CF
parser to generate better Java code.

> InLine Java Code.
> If this ever happens, ideally.. CFMX complier should create a helper 
> class
> file and let Java Complier, compile it like a Jsp page.. this would be
> excellent.. but again IS'nt CfObject doing the same thing?(seperating 
> the
> helper/model class from presentation)...Am trying to relate to "Inline 
> Java"..
> So what overall advantage do we get with Inline Java? Any 
> Performance...?
> other than coding between CF/Java in templates?
>
> I am not against InLine Java.. just trying to understand the Mechanics.

I think you could get an interface between no-typing and strong typing

I think you would be more easily do develop and test the parts of your 
program
that you needed (or decided) to code in Java.

The inline code likely would be more efficient that CF parser generated 
code, so
yes there would be a performance gain (when warranted).

You might be developing a routine that will be ultimately deployed as a 
separate Java
program (invoked with cfobject) -- it could be more convenient to 
develop and debug
the Java inline, along with the CFML.

The dbMetaData example illustrates one advantage of inline Java.

Say you want to change the program(s) slightly so they return a list of 
db tables, and the
columns within each table.  On the presentation side, you want to 
display the combined
list in a select box.

Here' s what you do, presently:

1) display the Java source
2) modify the Java source.
3) save the Java source
4) switch to a CLI window
5) compile the Java source
6) switch to the CF source
7) modify the CF source
8) save the CF source
9) switch to a browser window
10) invoke the cf template

Here's what you would do with inline Java

1) display the combined  CF source with the inlineJava source
2) modify the inline Java source.
3) modify the CF source
4) save the combined  CF source with the inlineJava source
5) switch to a browser window
6) invoke the cf template

Now, you might say "You only save 4 steps!! -- but that's 40% of the 
steps.

and they are repeated many times.

You would be eliminating 40% of the interactions, 40% of the 
distractions,
40% of the opportunities to make a mistake.

It means productivity!

I hope this helps answer your question -- I really don't under stand 
what a helper/model class is, yet!

As an aside, does Java recognize a construct similar to a hash or a CF 
Structure,
that could be passed between CFML & Java.





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Using a counter variable

2002-11-26 Thread Clark, Aimee
Mosh,
I tried this and it did work, but, it's still showing my survey link
even though the counter has been set back to 0. Can you tell why?










Your Help Desk call (Ticket No. #GetCall.ID#) has been
closed.  If you believe the call should not be closed, or the problem occurs
again, please reply to this message or call the Help Desk, to let us know.

Call Information
Ticket Number:  #GetCall.ID#
Problem Description:  
#GetCall.Issue#
Resolution: 
#GetCall.Resolution#

http://dailynews/helpdesk/test/HDSurvey.cfm?ID=#ID#";
target="_blank">Click here to answer a brief survey about your issue and
resolution.
#counter#







Your Help Desk call (Ticket No. #GetCall.ID#) has been
closed.  If you believe the call should not be closed, or the problem occurs
again, please reply to this message or call the Help Desk, to let us know.

Call Information
Ticket Number:  #GetCall.ID#
Problem Description:  
#GetCall.Issue#
Resolution: 
#GetCall.Resolution#

#counter#



Thank you,
Aimee' Clark

-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:41 PM
To: CF-Talk
Subject: RE: Using a counter variable


You haven't made your counter variable persistent.  Every time someone makes
a new request of your application, Application.cfm creates a new variable
called "counter" and sets it equal to 0.  You need to make your variable
persistent.  And since you want it to work across multiple users, it should
probably persist in the APPLICATION scope.

So, your Application.cfm should look something like:







Your action page should look something like:





















--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:03 PM
> To: CF-Talk
> Subject: Using a counter variable
>
>
> I have an application in which I want every 7th record closed in
> a table to
> generate an email asking the user to participate in a survey.
>
> I have  in the application.cfm file.
>
> I have  in my action page right after
> an update
> that is done to the table.
>
> Then I have 
>   execute generating email
>   then it resets the counter back to 0
>
> However my counter is not incrementing at all. It just keep staying at 1.
> I'm not sure why. Can someone provide some assistance with this?
>
> Thank you,
> Aimee' Clark
> Web Developer
> Stinson Morrison Hecker
>
> 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Java in CF (CFMX)

2002-11-26 Thread Rob Rohan
ah, the fun of writting cf java tags. After you make a change and recompile,
you'll need to cycle the service to re-read the class file...

unless there is a better way that I don't know about.


Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:21 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


Joe

I  have been modifing with your Java code to return tables and columns
and I ran into a
weird situation.

for convenience, I put the ,java file in WEB-INF/classes

I recompile the program and get a class file

I run the CF template, but get the old version of the class file

I even deleted the class file -- something is being cached, somewhere
-- Where?

TIA

Dick




On Tuesday, November 26, 2002, at 01:35 PM, Joe Eugene wrote:

> Dick
>
> No problem, i got the same solution working with MM,MS-SQL and Oracle
> drivers
> without any problem.
>> You, likely, saved me several hours of
>> frustration.
> Now the ideal solution would be to return Complex
> Objects/Types(Structs,ResultSets) back to CFMX. Havent had a chance to
> play
> with Structs(CFMX-Java) compatibility.
>
>> Is there value to the Java developer (new or
>> experienced) to inline
>> code -- Yes,
>
> I understand your need. A while ago, we looked at the generated Java
> code(Real
> Ugly!) from a *.cfm page. A lot of ugly wrappers coverting loose *.cfm
> TYPES
> to strong Java Types..(Result..Slow pages)(Topic Jsp vs Cfm).
>
> InLine Java Code.
> If this ever happens, ideally.. CFMX complier should create a helper
> class
> file and let Java Complier, compile it like a Jsp page.. this would be
> excellent.. but again IS'nt CfObject doing the same thing?(seperating
> the
> helper/model class from presentation)...Am trying to relate to "Inline
> Java"..
> So what overall advantage do we get with Inline Java? Any
> Performance...?
> other than coding between CF/Java in templates?
>
> I am not against InLine Java.. just trying to understand the Mechanics.
>
> Joe
>
> On Tue, 26 Nov 2002 07:10:11 -0800 Dick Applebaum <[EMAIL PROTECTED]>
> wrote:
>
>> Joe
>>
>> Your example, does, in fact work.
>>
>> Of course, I needed to modify the Java code to
>> specify a different
>> database --
>> none of the MS databases appear to work on Mac
>> OS X (or and non-win
>> platform) :)
>>
>> This is enough to get me started -- I will add
>> the flexibility to the
>> interface so it
>> will work with any JDBC driver, and any
>> MetaData request.
>>
>> Thanks
>>
>> I have never written a wrapper for a Java
>> program & it helps to start
>> with a
>> working example, and concise instructions.
>>
>> You, likely, saved me several hours of
>> frustration.
>>
>> I think that implementing and deploying this
>> example is a good
>> illustration of the
>> value of inline Java.
>>
>> Someone new to Java, like myself, could take
>> your example and drop it
>> into a simpleCF template,
>> between  tags.  Then they could add the CFML
>> portion in the
>> same template. More likely,
>> you would have provided a complete, standalone
>> CF Template with the
>> Java code, inline.
>>
>> Then they could save and test the template
>> without concern for:
>>
>> 1) Separating your file into its Java and
>> CFML component parts.
>>
>> 2) Where to put the Java source
>>
>> 3) How to compile the Java class
>>
>> 4) Which Java compiler options to use and
>> their proper settings --
>>  things such as:
>>
>> Usage: javac
>> where possible options include:
>>-gGenerate
>> all debugging info
>>-g:none   Generate
>> no debugging info
>>-g:{lines,vars,source}Generate
>> only some debugging info
>>-OOptimize;
>> may hinder debugging or
>> enlarge class file
>>-nowarn   Generate
>> no warnings
>>-verbose  Output
>> messages about what the
>> compiler is doing
>>-deprecation  Output
>> source locations where
>> deprecated APIs are used
>>-classpath  Specify where to
>> find user class
>> files
>>-sourcepath Specify where to
>> find input source
>> files
>>-bootclasspath  Override
>> location of bootstrap
>> class files
>>-extdirsOverride
>> location of installed
>> extensions
>>-d Specify where to
>> place generated
>> class files
>>-encoding   Specify character
>> encoding used by
>> source files
>>-target  Generate class
>> files for specific
>> VM version
>>
>> 5) Figuring out the command line interface
>> or some Java IDE, just to
>> be able to compile the Java program.
>>
>> 6) Where to put the Java class
>>
>> 7) Where to get a Java compiler if one
>> isn't installe

RE: Freeware mail servers

2002-11-26 Thread cfhelp
WarFTP the new beta version is stable now and comes with command line tool
and an API.

Rick

-Original Message-
From: Timothy Heald [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 11:23 AM
To: CF-Talk
Subject: OT: Freeware mail servers

Howdy.

I am running a server at my house (adsl, speak easy, sweet) I have all the
server software I want except for a mail server.  I am looking for
something, free, runs on Windows 2000 AS, and has a GUI for admin (don't
want to learn a whole bunch of command line junk, yeah I am lazy, I know).
Also a decent freeware FTP server would be nice,  I am using IIS FTP and it
is junk.

Thanks,

Timothy Heald
Assistant Webmaster
Overseas Security Advisory Council
U.S. Department of State 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: Java in CF (CFMX)

2002-11-26 Thread Dick Applebaum
Joe

I  have been modifing with your Java code to return tables and columns  
and I ran into a
weird situation.

for convenience, I put the ,java file in WEB-INF/classes

I recompile the program and get a class file

I run the CF template, but get the old version of the class file

I even deleted the class file -- something is being cached, somewhere  
-- Where?

TIA

Dick




On Tuesday, November 26, 2002, at 01:35 PM, Joe Eugene wrote:

> Dick
>
> No problem, i got the same solution working with MM,MS-SQL and Oracle  
> drivers
> without any problem.
>> You, likely, saved me several hours of
>> frustration.
> Now the ideal solution would be to return Complex
> Objects/Types(Structs,ResultSets) back to CFMX. Havent had a chance to  
> play
> with Structs(CFMX-Java) compatibility.
>
>> Is there value to the Java developer (new or
>> experienced) to inline
>> code -- Yes,
>
> I understand your need. A while ago, we looked at the generated Java  
> code(Real
> Ugly!) from a *.cfm page. A lot of ugly wrappers coverting loose *.cfm  
> TYPES
> to strong Java Types..(Result..Slow pages)(Topic Jsp vs Cfm).
>
> InLine Java Code.
> If this ever happens, ideally.. CFMX complier should create a helper  
> class
> file and let Java Complier, compile it like a Jsp page.. this would be
> excellent.. but again IS'nt CfObject doing the same thing?(seperating  
> the
> helper/model class from presentation)...Am trying to relate to "Inline  
> Java"..
> So what overall advantage do we get with Inline Java? Any  
> Performance...?
> other than coding between CF/Java in templates?
>
> I am not against InLine Java.. just trying to understand the Mechanics.
>
> Joe
>
> On Tue, 26 Nov 2002 07:10:11 -0800 Dick Applebaum <[EMAIL PROTECTED]>  
> wrote:
>
>> Joe
>>
>> Your example, does, in fact work.
>>
>> Of course, I needed to modify the Java code to
>> specify a different
>> database --
>> none of the MS databases appear to work on Mac
>> OS X (or and non-win
>> platform) :)
>>
>> This is enough to get me started -- I will add
>> the flexibility to the
>> interface so it
>> will work with any JDBC driver, and any
>> MetaData request.
>>
>> Thanks
>>
>> I have never written a wrapper for a Java
>> program & it helps to start
>> with a
>> working example, and concise instructions.
>>
>> You, likely, saved me several hours of
>> frustration.
>>
>> I think that implementing and deploying this
>> example is a good
>> illustration of the
>> value of inline Java.
>>
>> Someone new to Java, like myself, could take
>> your example and drop it
>> into a simpleCF template,
>> between  tags.  Then they could add the CFML
>> portion in the
>> same template. More likely,
>> you would have provided a complete, standalone
>> CF Template with the
>> Java code, inline.
>>
>> Then they could save and test the template
>> without concern for:
>>
>> 1) Separating your file into its Java and
>> CFML component parts.
>>
>> 2) Where to put the Java source
>>
>> 3) How to compile the Java class
>>
>> 4) Which Java compiler options to use and
>> their proper settings --
>>  things such as:
>>
>> Usage: javac
>> where possible options include:
>>-gGenerate
>> all debugging info
>>-g:none   Generate
>> no debugging info
>>-g:{lines,vars,source}Generate
>> only some debugging info
>>-OOptimize;
>> may hinder debugging or
>> enlarge class file
>>-nowarn   Generate
>> no warnings
>>-verbose  Output
>> messages about what the
>> compiler is doing
>>-deprecation  Output
>> source locations where
>> deprecated APIs are used
>>-classpath  Specify where to
>> find user class
>> files
>>-sourcepath Specify where to
>> find input source
>> files
>>-bootclasspath  Override
>> location of bootstrap
>> class files
>>-extdirsOverride
>> location of installed
>> extensions
>>-d Specify where to
>> place generated
>> class files
>>-encoding   Specify character
>> encoding used by
>> source files
>>-target  Generate class
>> files for specific
>> VM version
>>
>> 5) Figuring out the command line interface
>> or some Java IDE, just to
>> be able to compile the Java program.
>>
>> 6) Where to put the Java class
>>
>> 7) Where to get a Java compiler if one
>> isn't installed on their
>> platform (Mac OS X comes,
>> standard, with a JDK, but many
>> platforms do not).
>>
>> Sure, these are things that the new Java person
>> will need to learn
>> eventually.  But, is it necessary to
>> overload the new Java user with all this
>> minutiae, just to try a simple
>> Java example -- I think not!
>>
>> Is there value to the Java developer (new or
>> experienced) to inline
>> code -- Yes, I've n

RE: Using a counter variable

2002-11-26 Thread Boardwine, David L.
The application.cfm gets executed with every call to another page. That's
why you need to check if it has already been initialized.

HTH

-Original Message-
From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:37 PM
To: CF-Talk
Subject: RE: Using a counter variable


I'm trying to do it all in one request. The tech goes to close the ticket,
clicks save changes, then that executes the action page. I set the variable
initially in the application file, but I'm incrementing it in the action
page, which would mean that at that point it's a session variable. 

I have to admit, I'm still learning the best practices with respect to "how"
I should be doing this. 

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:24 PM
To: CF-Talk
Subject: RE: Using a counter variable


Aimee,

A bit more info would be helpful. Are you trying to do this all in one
request?  what sort of variable is it? session? If it's a session variable
then it's being reset to Zero with every request by the application.cfm
page. You would need to do (with locking):





-Original Message-
From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:03 PM
To: CF-Talk
Subject: Using a counter variable


I have an application in which I want every 7th record closed in a table to
generate an email asking the user to participate in a survey.

I have  in the application.cfm file.

I have  in my action page right after an update
that is done to the table.

Then I have 
execute generating email
then it resets the counter back to 0

However my counter is not incrementing at all. It just keep staying at 1.
I'm not sure why. Can someone provide some assistance with this?

Thank you,
Aimee' Clark
Web Developer
Stinson Morrison Hecker




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: Strange Mac Browser Behaviour

2002-11-26 Thread Joshua Miller
Yup, that's me - THANKS!

Did you get them from my site or from the JEdit site? There are more on  
mine than on JEdit.org since they're kind of Macromedia MX looking. I  
think the JEdit folks were afraid of getting in trouble.

On Tuesday, November 26, 2002, at 04:26 PM, Rob Rohan wrote:

> Don't have access to a Mac and I can't help you with this one, but I  
> wanted
> to let you know I dig your JEdit icons (if you are *that* Joshua  
> Miller).
>
> Rob
>
> http://treebeard.sourceforge.net
> http://ruinworld.sourceforge.net
> Scientia Est Potentia
>
> -Original Message-
> From: Joshua Miller [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 1:07 PM
> To: CF-Talk
> Subject: Strange Mac Browser Behaviour
>
>
> I'm working on a SESSION based login system for a website - when I
> access the application on my local network using a Mac, everything
> works fine, but when I access the same application on the same Mac over
> an internet connection, I get an HTTP 400 error when trying to login.
>
> It all works fine on Windows (IE, NS, Mozilla, Opera) but on Mac (same
> browsers) I get the 400 error. I've trimmed all the variables in case
> that was the problem, but still nothing fixes the error. I've validated
> the HTML against 4.0 standards and it's fine  I'm lost.
>
> Anyone have any suggestions or ideas?
>
> http://demo.digitalhealthdepartment.com/webadmin/   <<< The
> page in question
>
> Just try any user/pass - it bombs no matter what - doesn't even act
> like it attempts to find the page.
>
> Thanks,
>
> Joshua Miller
> Webmaster - Garrison Enterprises, Inc.
> [EMAIL PROTECTED]
> www.garrisonenterprises.net
> (704) 569-9044 ext. 254
>
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: Using a counter variable

2002-11-26 Thread Eric Dawson
if you are using an incremental key for each new record - you could use a 
mod 7 on the primary key to determine if the record should be selected for 
survey followup.

send additional

e

From: "charlie griefer" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: CF-Talk <[EMAIL PROTECTED]>
Subject: Re: Using a counter variable
Date: Tue, 26 Nov 2002 14:43:48 -0700

Clark, Aimee writes:

 > I have an application in which I want every 7th record closed in a table 
to
 > generate an email asking the user to participate in a survey.
 >
 > I have  in the application.cfm file.
 >
 > I have  in my action page right after an 
update
 > that is done to the table.
 >
 > Then I have 
 >  execute generating email
 >  then it resets the counter back to 0
 >
 > However my counter is not incrementing at all. It just keep staying at 1.
 > I'm not sure why. Can someone provide some assistance with this?


Aimee:

The problem is that Application.cfm is always run before any template in the
same directory (or subdirectory that does not have its own Application.cfm).
So essentially the variable 'counter' is being set to 0 each time the page
loads.  It's also being set within the local scope, so it wouldn't really be
persistent.

In your Application.cfm, cfparam the variable (within the application scope)
as follows:


then, on your form's action page, you don't really want , as that would only trigger once.  You want , which says every 7th time, trigger event.

This will work until the application times out...not sure if that's what you
want or not.  You might just want to have a value in a database increment by
one for every insert...and if that value is evenly divisible by 7, run your
survey code.

hth,
charlie

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: SQL Question

2002-11-26 Thread Marlon Moyer
*** Danger Will Robinson - Untested Code ahead ***

create table ##tempTblBusiness (
ident int IDENTITY(1,1),
company  varchar(32)
)
go

insert into ##tempTblBusiness
select distinct company

go

update table tblBusiness
set companyId = b.ident
from tblBusiness a
inner join
##tempTblBusiness b
on a.company = b.company

go

Marlon



Luce, Greg wrote:

>OK, I tried asking this on SQL Team and nobody understood. I want to
>populate a new column in my tblBusiness called companyid. If there are 5
>records for "Publix" I want all 5 to have the same companyid. I could do it
>using CF very easily like this:
>
>   SELECTdistinct company AS company
>   FROM  tblBusiness
>
>
>
>   
>   UPDATE tblBusiness
>   SET companyid = #currentrow#
>   WHERE company = '#company#'
>   
>
>
>My question is how ccan I do this in query analyzer. I'm sure you can create
>loops and variables in an SQL script, I just don't know how.
>***Sterling Financial Investment Group, Inc. (SFIG) is a member of
>NASD/MSRB/NFA/SIPC.  Email transmissions may be monitored.  SFIG cannot
>accept orders to buy or sell via email.  Please visit www.mysterling.com for
>more information.***
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Using a counter variable

2002-11-26 Thread Dina Hess
Your code, please?

  - Original Message - 
  From: Clark, Aimee 
  To: CF-Talk 
  Sent: Tuesday, November 26, 2002 3:02 PM
  Subject: Using a counter variable


  I have an application in which I want every 7th record closed in a table to
  generate an email asking the user to participate in a survey. 

  I have  in the application.cfm file.

  I have  in my action page right after an update
  that is done to the table.

  Then I have 
  execute generating email
  then it resets the counter back to 0

  However my counter is not incrementing at all. It just keep staying at 1.
  I'm not sure why. Can someone provide some assistance with this?

  Thank you,
  Aimee' Clark
  Web Developer
  Stinson Morrison Hecker

  
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Using a counter variable

2002-11-26 Thread Brian Ledwith
It's because your Counter variable isn't sticking around long enough to be 
incrementing...  Try setting Counter as an Application variable in your 
Application.cfm page like this:


 


And on your action page, use this:

..do stuff...


 


Try it on a few dummy pages first.  Create a new subdirectory with a simple 
CFAPPLICATION tag on a fresh Application page, like:



 


And then plug this in on a Index.cfm page:


application.counter=#application.counter#

 Generate Email


Browse to that page, and hit refresh 6 times.  You'll see the counter increment, and 
when it gets to 7 (or a multiple of 7), you'll see "Generate Email".

HTH
~bgl


--> -Original Message-
--> From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
--> Sent: Tuesday, November 26, 2002 1:03 PM
--> To: CF-Talk
--> Subject: Using a counter variable
--> 
--> I have an application in which I want every 7th record closed in a table
--> to
--> generate an email asking the user to participate in a survey.
--> 
--> I have  in the application.cfm file.
--> 
--> I have  in my action page right after an
--> update
--> that is done to the table.
--> 
--> Then I have 
--> execute generating email
--> then it resets the counter back to 0
--> 
--> However my counter is not incrementing at all. It just keep staying at
--> 1.
--> I'm not sure why. Can someone provide some assistance with this?
--> 
--> Thank you,
--> Aimee' Clark
--> Web Developer
--> Stinson Morrison Hecker
--> 
--> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Using a counter variable

2002-11-26 Thread Mosh Teitelbaum
You haven't made your counter variable persistent.  Every time someone makes
a new request of your application, Application.cfm creates a new variable
called "counter" and sets it equal to 0.  You need to make your variable
persistent.  And since you want it to work across multiple users, it should
probably persist in the APPLICATION scope.

So, your Application.cfm should look something like:







Your action page should look something like:





















--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -Original Message-
> From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:03 PM
> To: CF-Talk
> Subject: Using a counter variable
>
>
> I have an application in which I want every 7th record closed in
> a table to
> generate an email asking the user to participate in a survey.
>
> I have  in the application.cfm file.
>
> I have  in my action page right after
> an update
> that is done to the table.
>
> Then I have 
>   execute generating email
>   then it resets the counter back to 0
>
> However my counter is not incrementing at all. It just keep staying at 1.
> I'm not sure why. Can someone provide some assistance with this?
>
> Thank you,
> Aimee' Clark
> Web Developer
> Stinson Morrison Hecker
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Using a counter variable

2002-11-26 Thread Clark, Aimee
I guess I really need some guidance on this problem. I tried putting the
initial creation for this variable on the action page, but then it does the
same thing because when the page runs, it resets the variable back to 0,
then adds 1. Very frustrating.

What should I do? What is the best practice for this type of scenario?

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:24 PM
To: CF-Talk
Subject: RE: Using a counter variable


Aimee,

A bit more info would be helpful. Are you trying to do this all in one
request?  what sort of variable is it? session? If it's a session variable
then it's being reset to Zero with every request by the application.cfm
page. You would need to do (with locking):





-Original Message-
From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:03 PM
To: CF-Talk
Subject: Using a counter variable


I have an application in which I want every 7th record closed in a table to
generate an email asking the user to participate in a survey.

I have  in the application.cfm file.

I have  in my action page right after an update
that is done to the table.

Then I have 
execute generating email
then it resets the counter back to 0

However my counter is not incrementing at all. It just keep staying at 1.
I'm not sure why. Can someone provide some assistance with this?

Thank you,
Aimee' Clark
Web Developer
Stinson Morrison Hecker



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: Strange Mac Browser Behaviour

2002-11-26 Thread Sean Daniels
On Tuesday, November 26, 2002, at 04:06  PM, Joshua Miller wrote:

> http://demo.digitalhealthdepartment.com/webadmin/   <<< The
> page in question
>
> Just try any user/pass - it bombs no matter what - doesn't even act
> like it attempts to find the page.

Get rid of the enctype="multipart/form-data" attribute of your form. 
That may solve your issue. There is a known Mac IE bug in handling form 
posts of that variety.

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: SQL Question

2002-11-26 Thread Luce, Greg
Yeah, I know. It's not the primary key. It's going to be a foreign key to a
"tblCompany".

-Original Message-
From: Randell B Adkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:51 PM
To: CF-Talk
Subject: Re: SQL Question


If CompanyID is a unique Field in this table, then you can not update
it by using the same number multiple times.

if it is a number field or text field which the table does not have a
primary key to disallow multiples then you are ok.

>>> [EMAIL PROTECTED] 11/26/02 10:29AM >>>
OK, I tried asking this on SQL Team and nobody understood. I want to
populate a new column in my tblBusiness called companyid. If there are
5
records for "Publix" I want all 5 to have the same companyid. I could
do it
using CF very easily like this:

SELECTdistinct company AS company
FROM  tblBusiness




UPDATE tblBusiness
SET companyid = #currentrow#
WHERE company = '#company#'



My question is how ccan I do this in query analyzer. I'm sure you can
create
loops and variables in an SQL script, I just don't know how.
***Sterling Financial Investment Group, Inc. (SFIG) is a member of
NASD/MSRB/NFA/SIPC.  Email transmissions may be monitored.  SFIG
cannot
accept orders to buy or sell via email.  Please visit
www.mysterling.com for
more information.***


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Using a counter variable

2002-11-26 Thread Clark, Aimee
I'm trying to do it all in one request. The tech goes to close the ticket,
clicks save changes, then that executes the action page. I set the variable
initially in the application file, but I'm incrementing it in the action
page, which would mean that at that point it's a session variable. 

I have to admit, I'm still learning the best practices with respect to "how"
I should be doing this. 

-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:24 PM
To: CF-Talk
Subject: RE: Using a counter variable


Aimee,

A bit more info would be helpful. Are you trying to do this all in one
request?  what sort of variable is it? session? If it's a session variable
then it's being reset to Zero with every request by the application.cfm
page. You would need to do (with locking):





-Original Message-
From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:03 PM
To: CF-Talk
Subject: Using a counter variable


I have an application in which I want every 7th record closed in a table to
generate an email asking the user to participate in a survey.

I have  in the application.cfm file.

I have  in my action page right after an update
that is done to the table.

Then I have 
execute generating email
then it resets the counter back to 0

However my counter is not incrementing at all. It just keep staying at 1.
I'm not sure why. Can someone provide some assistance with this?

Thank you,
Aimee' Clark
Web Developer
Stinson Morrison Hecker



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: SQL Question

2002-11-26 Thread Luce, Greg
Yeah, that's the ticket! I'll look in Books Online for the close and
deallocate cursor syntax. (It took 5 hours for this post to go up!) Thanks
Mark.

DECLARE @company varchar(20) -- or whatever

DECLARE myCursor FOR (select distinct company from tblBusiness where listnum
= 1)

open myCursor

Fetch Next from myCursor INTO @company

UPDATE tblBusiness
SET companyid = (select max(companyid) from tblBusiness
where listnum = 1) + 1
WHERE company = '@company'

close and deallocate the cursor...


-Original Message-
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:06 PM
To: CF-Talk
Subject: RE: SQL Question


If you are trying to increment - an int for each company, then you can do it
like this:

UPDATE tblBusiness
SET companyid = (select max(companyid) from tblBusiness) + 1
WHERE company = 'blah'


If you must loop through all the companies you will have to open a cursor...
There are lots of examples in sql books on-line... If you need a simple
example I will send you one, but the basic idea is:

DECLARE @company varchar(20) -- or whatever

DECLARE myCursor FOR (select distinct company from tblBusiness)


open myCursor

Fetch Next from myCursor INTO @company

Run your update code




close and deallocate the cursor...



there's a lot more code to it - looping in SQL is a bit more verbose, but
it's not hard to get a handle on it if you want to.  Very useful too.


-Mark




-Original Message-
From: Luce, Greg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 9:30 AM
To: CF-Talk
Subject: SQL Question


OK, I tried asking this on SQL Team and nobody understood. I want to
populate a new column in my tblBusiness called companyid. If there are 5
records for "Publix" I want all 5 to have the same companyid. I could do it
using CF very easily like this:

SELECTdistinct company AS company
FROM  tblBusiness




UPDATE tblBusiness
SET companyid = #currentrow#
WHERE company = '#company#'



My question is how ccan I do this in query analyzer. I'm sure you can create
loops and variables in an SQL script, I just don't know how.
***Sterling Financial Investment Group, Inc. (SFIG) is a member of
NASD/MSRB/NFA/SIPC.  Email transmissions may be monitored.  SFIG cannot
accept orders to buy or sell via email.  Please visit www.mysterling.com for
more information.***


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: (ot) java help

2002-11-26 Thread Joe Eugene
Where is your question? How can someone help you without a question.. Post
your question.

Joe

On Tue, 26 Nov 2002 09:07:11 -0800 "Owens, Howard" <[EMAIL PROTECTED]>
wrote:

> I'm working on learning Java ... have come to
> my first issue that I can't
> solve myself.
> 
> Any java programmers out there want to answer
> questions from me?
> 
> I tried finding a java discussion list for
> beginners and the only one I
> found seems to be too inactive to be much help.
> 
> H.
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Re: Using a counter variable

2002-11-26 Thread charlie griefer
Clark, Aimee writes: 

> I have an application in which I want every 7th record closed in a table to
> generate an email asking the user to participate in a survey.  
> 
> I have  in the application.cfm file. 
> 
> I have  in my action page right after an update
> that is done to the table. 
> 
> Then I have 
>   execute generating email
>   then it resets the counter back to 0 
> 
> However my counter is not incrementing at all. It just keep staying at 1.
> I'm not sure why. Can someone provide some assistance with this?
 

Aimee: 

The problem is that Application.cfm is always run before any template in the 
same directory (or subdirectory that does not have its own Application.cfm). 
So essentially the variable 'counter' is being set to 0 each time the page 
loads.  It's also being set within the local scope, so it wouldn't really be 
persistent. 

In your Application.cfm, cfparam the variable (within the application scope) 
as follows:
 

then, on your form's action page, you don't really want , as that would only trigger once.  You want , which says every 7th time, trigger event. 

This will work until the application times out...not sure if that's what you 
want or not.  You might just want to have a value in a database increment by 
one for every insert...and if that value is evenly divisible by 7, run your 
survey code. 

hth,
charlie 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: Java in CF (CFMX)

2002-11-26 Thread Joe Eugene
Dick

No problem, i got the same solution working with MM,MS-SQL and Oracle drivers
without any problem.
> You, likely, saved me several hours of
> frustration.
Now the ideal solution would be to return Complex
Objects/Types(Structs,ResultSets) back to CFMX. Havent had a chance to play
with Structs(CFMX-Java) compatibility.

> Is there value to the Java developer (new or
> experienced) to inline  
> code -- Yes, 

I understand your need. A while ago, we looked at the generated Java code(Real
Ugly!) from a *.cfm page. A lot of ugly wrappers coverting loose *.cfm TYPES
to strong Java Types..(Result..Slow pages)(Topic Jsp vs Cfm).

InLine Java Code.
If this ever happens, ideally.. CFMX complier should create a helper class
file and let Java Complier, compile it like a Jsp page.. this would be
excellent.. but again IS'nt CfObject doing the same thing?(seperating the
helper/model class from presentation)...Am trying to relate to "Inline Java"..
So what overall advantage do we get with Inline Java? Any Performance...?
other than coding between CF/Java in templates?

I am not against InLine Java.. just trying to understand the Mechanics.

Joe

On Tue, 26 Nov 2002 07:10:11 -0800 Dick Applebaum <[EMAIL PROTECTED]> wrote:

> Joe
> 
> Your example, does, in fact work.
> 
> Of course, I needed to modify the Java code to
> specify a different  
> database --
> none of the MS databases appear to work on Mac
> OS X (or and non-win  
> platform) :)
> 
> This is enough to get me started -- I will add
> the flexibility to the  
> interface so it
> will work with any JDBC driver, and any
> MetaData request.
> 
> Thanks
> 
> I have never written a wrapper for a Java
> program & it helps to start  
> with a
> working example, and concise instructions.
> 
> You, likely, saved me several hours of
> frustration.
> 
> I think that implementing and deploying this
> example is a good  
> illustration of the
> value of inline Java.
> 
> Someone new to Java, like myself, could take
> your example and drop it  
> into a simpleCF template,
> between  tags.  Then they could add the CFML
> portion in the  
> same template. More likely,
> you would have provided a complete, standalone
> CF Template with the  
> Java code, inline.
> 
> Then they could save and test the template
> without concern for:
> 
> 1) Separating your file into its Java and
> CFML component parts.
> 
> 2) Where to put the Java source
> 
> 3) How to compile the Java class
> 
> 4) Which Java compiler options to use and
> their proper settings --
>  things such as:
> 
> Usage: javac  
> where possible options include:
>-gGenerate
> all debugging info
>-g:none   Generate
> no debugging info
>-g:{lines,vars,source}Generate
> only some debugging info
>-OOptimize;
> may hinder debugging or  
> enlarge class file
>-nowarn   Generate
> no warnings
>-verbose  Output
> messages about what the  
> compiler is doing
>-deprecation  Output
> source locations where  
> deprecated APIs are used
>-classpath  Specify where to
> find user class  
> files
>-sourcepath Specify where to
> find input source  
> files
>-bootclasspath  Override
> location of bootstrap  
> class files
>-extdirsOverride
> location of installed  
> extensions
>-d Specify where to
> place generated  
> class files
>-encoding   Specify character
> encoding used by  
> source files
>-target  Generate class
> files for specific  
> VM version
> 
> 5) Figuring out the command line interface
> or some Java IDE, just to  
> be able to compile the Java program.
> 
> 6) Where to put the Java class
> 
> 7) Where to get a Java compiler if one
> isn't installed on their  
> platform (Mac OS X comes,
> standard, with a JDK, but many
> platforms do not).
> 
> Sure, these are things that the new Java person
> will need to learn  
> eventually.  But, is it necessary to
> overload the new Java user with all this
> minutiae, just to try a simple  
> Java example -- I think not!
> 
> Is there value to the Java developer (new or
> experienced) to inline  
> code -- Yes, I've noted some
> advantages to the lay person.  But, Joe, who is
> experienced with Java,  
> could have benefitted from
> inline Java too.  I suspect he would have saved
> time preparing/testing  
> his example and the instructions
> how to deploy it :
> 
> 1) He, simply, could have provided a single
> CF template with the  
> Java inline; rather than a Java
>  program and a separate CF template.
> 
> 2) He could have avoided typing the
> instructions to compile and
>  deploy the Java program
> 
> 3) The flow of the example, likely, would
> be bette

Re: Flash and CF Integration

2002-11-26 Thread Jason Miller
you use a 
loadVariables( "http://www.syourdomain.com/page.cfm";
 , _root);

command. Things to note.
Do a search on LoadVarsNum and LoadVars - you'll wind up using needing
to know when to use which and why.

Also - notice my "_root." - well in some instances that may work as
"_level0." depending on setup of your movie. But if all the boxes are
simply on root timeline - then you reference a loaded var from cf string
&name=Dennis
as _root.name in the text properties box.

It is better practice to load the vars up into a MC - In that case
change that statement way up top to the instance name. Create an MC with
all your form fields in it. Place it on the stage. Remember to name it
in instance properites and load them into that MC. Say the MC was -
MyStuff.
then you reference it simply as _root.MyStuff.name
Follow?

Also - important 
you CAN NOT use data on the same frame you loaded it.

This will save you alot of time. Parse a variable to look for at the end
of the cfm string. like &EOF=True
Then in flash - the frame after your loadVars - do something like this
if (EOF == 1) {
EOF = 0;
gotoAndPlay(3);
} else {
gotoAndPlay(1);
}

So it only proceeds IF the end of the string is received. Flash takes
care of everything else.

That should get you started.
actionscript.org & 
flashcfm.com are great resources with out too much noise.
Jason Miller



dennis baldwin wrote:


Also, please feel free to check out  www.devmx.com
  for more info on

Flash/CF integration.



Regards,

Dennis



-Original Message-

From: Samuel R. Neff [ mailto:[EMAIL PROTECTED]
 ] 

Sent: Tuesday, November 26, 2002 9:48 AM

To: CF-Talk

Subject: Re: Flash and CF Integration





Yes, this can be done in Flash.  We're working on a very similar 

application where it maps items to a grid and then draws connectors

between 

related items.



Regarding layers, the first thing to remember is that they are only used



for z-order and organization.  AFAIK, they don't actually exist in the 

final SWF (only in the FLA).  That said, it is crucial to app 

maintainability that all items be on a separate later, or at the very

least 

all unrelated items (so a box and it's outline can be on a layer, but

other 

boxes should be on a different layer).



However, for dynamic layout like this, it's far easier to add items to

the 

timeline programmatically with attachMovie--when dealing with this many 

boxes, you should find it improves maintainability.



BTW, since these questions are not really related to CF, this thread

would 

probably be best served on a Flash 

forum.   http://webforums.macromedia.com/flash
  or

http://chattyfig.figleaf.com/  



HTH,



Sam





At 06:16 AM 11/26/2002, you wrote:

  

I'm doing my first Flash and CF integration app and have a list of

questions.  I have to dynamically display data in 14 text boxes as well



as 

  

have up to 36 dynamic lines connecting the boxes based on query 

results.  I"m not sure if this is possible with flash. I have my



template 

  

done in flash but everything is on 1 layer. Do I need to put things on 

different layers? Can anyone tell me if this is possible? There will be



at 

  

least 15 queries that have to be run to populate this template with the





  

correct data.  Any suggestions? Help? If you would like to see the fla 

file, please email me.



TIA








~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Freeware mail servers

2002-11-26 Thread Adrocknaphobia Jones
*cough*fusetalk*cough*

>hehe I'd have to agree with you there.  Lot's of crappy code in
slick
>packaging out there.
>
>-mk

-Original Message-
From: Mark Johnson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:39 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I would take the total opposite aproach.  If the graphic design sucks
..
probably means they are all a bunch of geeks and that the product rocks.

Mark

-Original Message-
From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:08 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I'm sorry I don't think I could ever buy anything from a company who
has uses blue comic sans over top a picture of a cat for the logo. You
would think that for 300 dollars for the pro version, they could afford
to high a graphic designer on contract at least.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:49 PM
To: CF-Talk
Subject: RE: Freeware mail servers

Serv-U is an awesome FTP server product. Its the best $40 I've ever
spent.

-Original Message-
From: samcfug [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:45 PM
To: CF-Talk
Subject: Re: Freeware mail servers


Tim
I have not found a freeware mail server for the Windows platform, but I
have
both a Windows server and a Linux server, and on the Linux box, both of
the
very
popular Sendmail and Postfix are open source (free)  and both are very
easily
configurable for anti-spam and anti-virus scanning.  There are even
several
very
good open source anti-virus programs for the Linux box as well.

On a Windows Box, I run Imail 7.0 which is getting more expensive with
each
upgrade, but is a lot easier to administer than, say Exchange.

I purchased RedHat 7.3 from Best Buy for $49.00.  While the software is
open
source, the purchase gives me a year of free updates, and that is really
convenient.  The Sendmail and PostFix mail servers (as well as apache
and a
couple of database products) are installed by default.
I use Webmin for remote administration.

For a windows FTP server I use SERV-U


=
Douglas White
group Manager
mailto:[EMAIL PROTECTED]
http://www.samcfug.org
=
- Original Message -
From: "Timothy Heald" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 11:22 AM
Subject: OT: Freeware mail servers


| Howdy.
|
| I am running a server at my house (adsl, speak easy, sweet) I have all
the
server software I want except for a mail server.  I am looking for
something,
free, runs on Windows 2000 AS, and has a GUI for admin (don't want to
learn
a
whole bunch of command line junk, yeah I am lazy, I know).  Also a
decent
freeware FTP server would be nice,  I am using IIS FTP and it is junk.
|
| Thanks,
|
| Timothy Heald
| Assistant Webmaster
| Overseas Security Advisory Council
| U.S. Department of State
|





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Strange Mac Browser Behaviour

2002-11-26 Thread Rob Rohan
Don't have access to a Mac and I can't help you with this one, but I wanted
to let you know I dig your JEdit icons (if you are *that* Joshua Miller).

Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 1:07 PM
To: CF-Talk
Subject: Strange Mac Browser Behaviour


I'm working on a SESSION based login system for a website - when I
access the application on my local network using a Mac, everything
works fine, but when I access the same application on the same Mac over
an internet connection, I get an HTTP 400 error when trying to login.

It all works fine on Windows (IE, NS, Mozilla, Opera) but on Mac (same
browsers) I get the 400 error. I've trimmed all the variables in case
that was the problem, but still nothing fixes the error. I've validated
the HTML against 4.0 standards and it's fine  I'm lost.

Anyone have any suggestions or ideas?

http://demo.digitalhealthdepartment.com/webadmin/   <<< The
page in question

Just try any user/pass - it bombs no matter what - doesn't even act
like it attempts to find the page.

Thanks,

Joshua Miller
Webmaster - Garrison Enterprises, Inc.
[EMAIL PROTECTED]
www.garrisonenterprises.net
(704) 569-9044 ext. 254


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Using a counter variable

2002-11-26 Thread Mark A. Kruger - CFG
Aimee,

A bit more info would be helpful. Are you trying to do this all in one
request?  what sort of variable is it? session? If it's a session variable
then it's being reset to Zero with every request by the application.cfm
page. You would need to do (with locking):





-Original Message-
From: Clark, Aimee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:03 PM
To: CF-Talk
Subject: Using a counter variable


I have an application in which I want every 7th record closed in a table to
generate an email asking the user to participate in a survey.

I have  in the application.cfm file.

I have  in my action page right after an update
that is done to the table.

Then I have 
execute generating email
then it resets the counter back to 0

However my counter is not incrementing at all. It just keep staying at 1.
I'm not sure why. Can someone provide some assistance with this?

Thank you,
Aimee' Clark
Web Developer
Stinson Morrison Hecker


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Re: E-Commerce, and Variations

2002-11-26 Thread Jason Miller
Although below sounds like it should be done - I sort of cheated on a 
few of my clients sites. They wanted things like this added differently 
to how they were doing it.
So I simply added a Color field in items - have the user enter a comma 
list -
small,medium.large
and parse that to a drop down.

If you have the time however - I would follow the route below for 
scalability. Above works well enough on 2 large sites - just an idea.
jay

Dowdell, Jason G wrote:

>Actually, I just went through the exact same scenario.
>Basically you'll need to create an item table, a attribute_group table,
>an attribute table, and an item_attribute_lookup table.
>Store your basic attribute types in the attribute_group table...
>size, color, weight.  Then in the attribute table you'll
>have a fk to the attribute_group table and store the value
>of the attribute here (pink, blue, green).  Then the item_attribute_lookup
>stores your attribute id (fk from attribute table) and the
>ItemID (fk from item table) as well as any other information you 
>need for each individual item.  You can store price, inventory or
>anything else here.  I'd also recommend putting an Active_Ind
>field on the item_attribute_lookup table as well.
>
>Hope this helps,
>Jason
>
>-Original Message-
>From: Chris Alvarado [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, November 26, 2002 11:24 AM
>To: CF-Talk
>Subject: E-Commerce, and Variations
>
>
>Hello all,
>
>Wanted to pick your brains on some DB related stuff.
>
>Currently working on an E-Commerce site and deal with product variations
>(size / color - which relates to price) and was curious to know if
>anyone has any suggestions on table structure to best handle this, or
>know of any good sites with reference.
>
>Logically what takes place is a certain size + color combination
>constitutes the "configuration" of the product they are purchasing, as
>well as determines the price.
>
>Just trying to get the relationship to make sense.
>
>Thanks all,
>
>-chris.alvarado
>[ application developer ]
>4 Guys Interactive, Inc.
>http://www.4guys.com 
>
>"We create websites that make you a hero."
>
>
>
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Strange Mac Browser Behaviour

2002-11-26 Thread Joshua Miller
I'm working on a SESSION based login system for a website - when I 
access the application on my local network using a Mac, everything 
works fine, but when I access the same application on the same Mac over 
an internet connection, I get an HTTP 400 error when trying to login.

It all works fine on Windows (IE, NS, Mozilla, Opera) but on Mac (same 
browsers) I get the 400 error. I've trimmed all the variables in case 
that was the problem, but still nothing fixes the error. I've validated 
the HTML against 4.0 standards and it's fine  I'm lost.

Anyone have any suggestions or ideas?

http://demo.digitalhealthdepartment.com/webadmin/   <<< The 
page in question

Just try any user/pass - it bombs no matter what - doesn't even act 
like it attempts to find the page.

Thanks,

Joshua Miller
Webmaster - Garrison Enterprises, Inc.
[EMAIL PROTECTED]
www.garrisonenterprises.net
(704) 569-9044 ext. 254

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



Using a counter variable

2002-11-26 Thread Clark, Aimee
I have an application in which I want every 7th record closed in a table to
generate an email asking the user to participate in a survey. 

I have  in the application.cfm file.

I have  in my action page right after an update
that is done to the table.

Then I have 
execute generating email
then it resets the counter back to 0

However my counter is not incrementing at all. It just keep staying at 1.
I'm not sure why. Can someone provide some assistance with this?

Thank you,
Aimee' Clark
Web Developer
Stinson Morrison Hecker

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: SQL Question

2002-11-26 Thread Mark A. Kruger - CFG
If you are trying to increment - an int for each company, then you can do it
like this:

UPDATE tblBusiness
SET companyid = (select max(companyid) from tblBusiness) + 1
WHERE company = 'blah'


If you must loop through all the companies you will have to open a cursor...
There are lots of examples in sql books on-line... If you need a simple
example I will send you one, but the basic idea is:

DECLARE @company varchar(20) -- or whatever

DECLARE myCursor FOR (select distinct company from tblBusiness)


open myCursor

Fetch Next from myCursor INTO @company

Run your update code




close and deallocate the cursor...



there's a lot more code to it - looping in SQL is a bit more verbose, but
it's not hard to get a handle on it if you want to.  Very useful too.


-Mark




-Original Message-
From: Luce, Greg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 9:30 AM
To: CF-Talk
Subject: SQL Question


OK, I tried asking this on SQL Team and nobody understood. I want to
populate a new column in my tblBusiness called companyid. If there are 5
records for "Publix" I want all 5 to have the same companyid. I could do it
using CF very easily like this:

SELECTdistinct company AS company
FROM  tblBusiness




UPDATE tblBusiness
SET companyid = #currentrow#
WHERE company = '#company#'



My question is how ccan I do this in query analyzer. I'm sure you can create
loops and variables in an SQL script, I just don't know how.
***Sterling Financial Investment Group, Inc. (SFIG) is a member of
NASD/MSRB/NFA/SIPC.  Email transmissions may be monitored.  SFIG cannot
accept orders to buy or sell via email.  Please visit www.mysterling.com for
more information.***

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: Freeware mail servers

2002-11-26 Thread Mark A. Kruger - CFG
hehe I'd have to agree with you there.  Lot's of crappy code in slick
packaging out there.

-mk

-Original Message-
From: Mark Johnson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:39 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I would take the total opposite aproach.  If the graphic design sucks ...
probably means they are all a bunch of geeks and that the product rocks.

Mark

-Original Message-
From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:08 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I'm sorry I don't think I could ever buy anything from a company who
has uses blue comic sans over top a picture of a cat for the logo. You
would think that for 300 dollars for the pro version, they could afford
to high a graphic designer on contract at least.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:49 PM
To: CF-Talk
Subject: RE: Freeware mail servers

Serv-U is an awesome FTP server product. Its the best $40 I've ever
spent.

-Original Message-
From: samcfug [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:45 PM
To: CF-Talk
Subject: Re: Freeware mail servers


Tim
I have not found a freeware mail server for the Windows platform, but I
have
both a Windows server and a Linux server, and on the Linux box, both of
the
very
popular Sendmail and Postfix are open source (free)  and both are very
easily
configurable for anti-spam and anti-virus scanning.  There are even
several
very
good open source anti-virus programs for the Linux box as well.

On a Windows Box, I run Imail 7.0 which is getting more expensive with
each
upgrade, but is a lot easier to administer than, say Exchange.

I purchased RedHat 7.3 from Best Buy for $49.00.  While the software is
open
source, the purchase gives me a year of free updates, and that is really
convenient.  The Sendmail and PostFix mail servers (as well as apache
and a
couple of database products) are installed by default.
I use Webmin for remote administration.

For a windows FTP server I use SERV-U


=
Douglas White
group Manager
mailto:[EMAIL PROTECTED]
http://www.samcfug.org
=
- Original Message -
From: "Timothy Heald" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 11:22 AM
Subject: OT: Freeware mail servers


| Howdy.
|
| I am running a server at my house (adsl, speak easy, sweet) I have all
the
server software I want except for a mail server.  I am looking for
something,
free, runs on Windows 2000 AS, and has a GUI for admin (don't want to
learn
a
whole bunch of command line junk, yeah I am lazy, I know).  Also a
decent
freeware FTP server would be nice,  I am using IIS FTP and it is junk.
|
| Thanks,
|
| Timothy Heald
| Assistant Webmaster
| Overseas Security Advisory Council
| U.S. Department of State
|




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



Re: SQL Question

2002-11-26 Thread Randell B Adkins
If CompanyID is a unique Field in this table, then you can not update
it by using the same number multiple times.

if it is a number field or text field which the table does not have a
primary key to disallow multiples then you are ok.

>>> [EMAIL PROTECTED] 11/26/02 10:29AM >>>
OK, I tried asking this on SQL Team and nobody understood. I want to
populate a new column in my tblBusiness called companyid. If there are
5
records for "Publix" I want all 5 to have the same companyid. I could
do it
using CF very easily like this:

SELECTdistinct company AS company
FROM  tblBusiness




UPDATE tblBusiness
SET companyid = #currentrow#
WHERE company = '#company#'



My question is how ccan I do this in query analyzer. I'm sure you can
create
loops and variables in an SQL script, I just don't know how.
***Sterling Financial Investment Group, Inc. (SFIG) is a member of
NASD/MSRB/NFA/SIPC.  Email transmissions may be monitored.  SFIG
cannot
accept orders to buy or sell via email.  Please visit
www.mysterling.com for
more information.***

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Freeware mail servers

2002-11-26 Thread Rob Rohan
No way man, it's all about the marketing - who cares if the product actually
works? (ask microsoft)

:)

Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Mark Johnson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:39 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I would take the total opposite aproach.  If the graphic design sucks ...
probably means they are all a bunch of geeks and that the product rocks.

Mark

-Original Message-
From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:08 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I'm sorry I don't think I could ever buy anything from a company who
has uses blue comic sans over top a picture of a cat for the logo. You
would think that for 300 dollars for the pro version, they could afford
to high a graphic designer on contract at least.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:49 PM
To: CF-Talk
Subject: RE: Freeware mail servers

Serv-U is an awesome FTP server product. Its the best $40 I've ever
spent.

-Original Message-
From: samcfug [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:45 PM
To: CF-Talk
Subject: Re: Freeware mail servers


Tim
I have not found a freeware mail server for the Windows platform, but I
have
both a Windows server and a Linux server, and on the Linux box, both of
the
very
popular Sendmail and Postfix are open source (free)  and both are very
easily
configurable for anti-spam and anti-virus scanning.  There are even
several
very
good open source anti-virus programs for the Linux box as well.

On a Windows Box, I run Imail 7.0 which is getting more expensive with
each
upgrade, but is a lot easier to administer than, say Exchange.

I purchased RedHat 7.3 from Best Buy for $49.00.  While the software is
open
source, the purchase gives me a year of free updates, and that is really
convenient.  The Sendmail and PostFix mail servers (as well as apache
and a
couple of database products) are installed by default.
I use Webmin for remote administration.

For a windows FTP server I use SERV-U


=
Douglas White
group Manager
mailto:[EMAIL PROTECTED]
http://www.samcfug.org
=
- Original Message -
From: "Timothy Heald" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 11:22 AM
Subject: OT: Freeware mail servers


| Howdy.
|
| I am running a server at my house (adsl, speak easy, sweet) I have all
the
server software I want except for a mail server.  I am looking for
something,
free, runs on Windows 2000 AS, and has a GUI for admin (don't want to
learn
a
whole bunch of command line junk, yeah I am lazy, I know).  Also a
decent
freeware FTP server would be nice,  I am using IIS FTP and it is junk.
|
| Thanks,
|
| Timothy Heald
| Assistant Webmaster
| Overseas Security Advisory Council
| U.S. Department of State
|




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



SQL Question

2002-11-26 Thread Luce, Greg
OK, I tried asking this on SQL Team and nobody understood. I want to
populate a new column in my tblBusiness called companyid. If there are 5
records for "Publix" I want all 5 to have the same companyid. I could do it
using CF very easily like this:

SELECTdistinct company AS company
FROM  tblBusiness




UPDATE tblBusiness
SET companyid = #currentrow#
WHERE company = '#company#'



My question is how ccan I do this in query analyzer. I'm sure you can create
loops and variables in an SQL script, I just don't know how.
***Sterling Financial Investment Group, Inc. (SFIG) is a member of
NASD/MSRB/NFA/SIPC.  Email transmissions may be monitored.  SFIG cannot
accept orders to buy or sell via email.  Please visit www.mysterling.com for
more information.***
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Freeware mail servers

2002-11-26 Thread Mark Johnson
I would take the total opposite aproach.  If the graphic design sucks ...
probably means they are all a bunch of geeks and that the product rocks.

Mark

-Original Message-
From: Adrocknaphobia Jones [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:08 PM
To: CF-Talk
Subject: RE: Freeware mail servers


I'm sorry I don't think I could ever buy anything from a company who
has uses blue comic sans over top a picture of a cat for the logo. You
would think that for 300 dollars for the pro version, they could afford
to high a graphic designer on contract at least.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:49 PM
To: CF-Talk
Subject: RE: Freeware mail servers

Serv-U is an awesome FTP server product. Its the best $40 I've ever
spent.

-Original Message-
From: samcfug [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:45 PM
To: CF-Talk
Subject: Re: Freeware mail servers


Tim
I have not found a freeware mail server for the Windows platform, but I
have
both a Windows server and a Linux server, and on the Linux box, both of
the
very
popular Sendmail and Postfix are open source (free)  and both are very
easily
configurable for anti-spam and anti-virus scanning.  There are even
several
very
good open source anti-virus programs for the Linux box as well.

On a Windows Box, I run Imail 7.0 which is getting more expensive with
each
upgrade, but is a lot easier to administer than, say Exchange.

I purchased RedHat 7.3 from Best Buy for $49.00.  While the software is
open
source, the purchase gives me a year of free updates, and that is really
convenient.  The Sendmail and PostFix mail servers (as well as apache
and a
couple of database products) are installed by default.
I use Webmin for remote administration.

For a windows FTP server I use SERV-U


=
Douglas White
group Manager
mailto:[EMAIL PROTECTED]
http://www.samcfug.org
=
- Original Message -
From: "Timothy Heald" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 11:22 AM
Subject: OT: Freeware mail servers


| Howdy.
|
| I am running a server at my house (adsl, speak easy, sweet) I have all
the
server software I want except for a mail server.  I am looking for
something,
free, runs on Windows 2000 AS, and has a GUI for admin (don't want to
learn
a
whole bunch of command line junk, yeah I am lazy, I know).  Also a
decent
freeware FTP server would be nice,  I am using IIS FTP and it is junk.
|
| Thanks,
|
| Timothy Heald
| Assistant Webmaster
| Overseas Security Advisory Council
| U.S. Department of State
|



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Default - cfschedule

2002-11-26 Thread Yves Arsenault
What is the default cfschedule setting when CF 5 is installed?

Just wondering.

TIA
Yves Arsenault
Carrefour Infotech
5,promenade Acadian
Charlottetown, IPE
C1C 1M2
[EMAIL PROTECTED]
(902)368-1895 ext.242
ICQ #117650823 



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Office XP anf CF

2002-11-26 Thread Matthew Small
The examples on CFCOMET work well for word 2002 for the most part.
However, Word 2002 has lots of dialog boxes that don't occur under word
2000, and that makes automation tough.  You have to listen for beeps
when you're working with it.

Matthew Small
IT Supervisor
Showstopper National Dance Competitions
3660 Old Kings Hwy 
Murrells Inlet, SC 29576
843-357-1847
http://www.showstopperonline.com

-Original Message-
From: WebSite CFtalk [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 3:06 PM
To: CF-Talk
Subject: Office XP anf CF

Hello,

I have not been able to use any of the examples on cfcomet on Word 2002.


Has something change from Word2000 to 2002?

Has anyone got working examples for Word2002?

Thanks
Helge Hetland

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Freeware mail servers

2002-11-26 Thread Adrocknaphobia Jones
I'm sorry I don't think I could ever buy anything from a company who
has uses blue comic sans over top a picture of a cat for the logo. You
would think that for 300 dollars for the pro version, they could afford
to high a graphic designer on contract at least.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-Original Message-
From: Duane Boudreau [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 12:49 PM
To: CF-Talk
Subject: RE: Freeware mail servers

Serv-U is an awesome FTP server product. Its the best $40 I've ever
spent.

-Original Message-
From: samcfug [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 12:45 PM
To: CF-Talk
Subject: Re: Freeware mail servers


Tim
I have not found a freeware mail server for the Windows platform, but I
have
both a Windows server and a Linux server, and on the Linux box, both of
the
very
popular Sendmail and Postfix are open source (free)  and both are very
easily
configurable for anti-spam and anti-virus scanning.  There are even
several
very
good open source anti-virus programs for the Linux box as well.

On a Windows Box, I run Imail 7.0 which is getting more expensive with
each
upgrade, but is a lot easier to administer than, say Exchange.

I purchased RedHat 7.3 from Best Buy for $49.00.  While the software is
open
source, the purchase gives me a year of free updates, and that is really
convenient.  The Sendmail and PostFix mail servers (as well as apache
and a
couple of database products) are installed by default.
I use Webmin for remote administration.

For a windows FTP server I use SERV-U


=
Douglas White
group Manager
mailto:[EMAIL PROTECTED]
http://www.samcfug.org
=
- Original Message -
From: "Timothy Heald" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 11:22 AM
Subject: OT: Freeware mail servers


| Howdy.
|
| I am running a server at my house (adsl, speak easy, sweet) I have all
the
server software I want except for a mail server.  I am looking for
something,
free, runs on Windows 2000 AS, and has a GUI for admin (don't want to
learn
a
whole bunch of command line junk, yeah I am lazy, I know).  Also a
decent
freeware FTP server would be nice,  I am using IIS FTP and it is junk.
|
| Thanks,
|
| Timothy Heald
| Assistant Webmaster
| Overseas Security Advisory Council
| U.S. Department of State
|


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Writing a file with CFFILE

2002-11-26 Thread S . Isaac Dealey
Okay, so it's just as f***ed... or actually more-so because now I need a
solution to the native solution, because if I'm right about the results I
got this means no-one can enter html entities in form fields in CF and get
html entities on the action page, whether they're using htmleditformat() or
not:

















#form.html#







Try this (I'm using CF 5 Win2K Server IIS 5) -- save it a couple times,
you'll see what I was saying about the other half of the problem. You can't
put html entities in the form and have them save as html entities.

So it's actually worse than I thought it was, because once the form field
has been submitted and all the html entities have been converted back to <>"
etc there's no way to distinguish what was supposed to be html from what was
supposed to be entities.

That's a real good way to move forward with XML and XHTML. 

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816

> Run the code... then tell me it still won't work that way.
> Is it possible
> you're wrong?

> Steve

> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 1:53 PM
> To: CF-Talk
> Subject: RE: Writing a file with CFFILE


> umm... no ...

> htmleditformat() converts potentially harmful characters (
> <,> " etc ) into
> html entities. An html entity is used to place characters
> in the display of
> an html page which aren't supposed to be allowed (
> although browsers often
> if not usually allow them anyway ) in an html document
> without being part of
> an html tag. htmleditformat(0 is a one-way conversion. You
> can of course,
> unhtmleditformat() a variable manually, however, doing so
> prevents you from
> placing proper html entities in the field since they would
> likely all be
> converted back into the <>" etc which aren't supposed to
> appear in properly
> formatted html documents.

> 
>   
> 

> 
>   myvar = #myvar#
>   htmleditformat(myvar) =
>   #htmleditformat(myvar)#
> 

> since these 2 lines are not the same, and the contents of
> a textarea field
> are passed literally ( they're not translated by the form
> submission ), the
> content of myvar becomes what you see on line 2 after it's
> been converted
> the first time with htmleditformat().

> Unless this is a very new feature of CFMX that I've not
> heard about which
> automatically reverts the string after a form submission.
> Although I would
> doubt it considering that this would prevent people being
> able to enter html
> entities into form fields and get html entities on the
> action page.

> Off the top of my head, I'm not sure what's up with your
> example -- I
> haven't tested it on my machine. If it is working, one of
> two things are
> happening -- there's more code involved than in your
> example ( an
> application.cfm maybe ) _or_ there's a bug somewhere,
> because it's not
> supposed to work that way.

> s. isaac dealey954-776-0046

> new epoch  http://www.turnkey.to

> lead architect, tapestry cms   http://products.turnkey.to

> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816



>> Actually yes. Run this code in a blank page and save
>> all day. Check
>> the
>> results in studio. As was my original problem, you are
>> over thinking this.
>> This is exactly what HTMLEditFormat() was designed for.
>> Hope this clear up
>> the confusion

>> 
>> 
>> > output="#form.display#"
>> addnewline="Yes">
>> 
>> > variable="output">
>> > action="#SCRIPT_NAME#"
>> method="post">
>> > style="width:500px;height:400px">#HTMLEditForma
>> t(output)#> pu
>> t>
>> 
>> 
>> 

>> Steve


>> -Original Message-
>> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, November 26, 2002 1:05 PM
>> To: CF-Talk
>> Subject: RE: Writing a file with CFFILE


>> umm... no ...

>> Try this

>> > value="#htmleditformat(myvar)#">

>> Then type 'Jim "the Man" davis' into that form field,
>> drop it into a
>> persistent variable or a database, retrieve it from that
>> location and
>> populate the form with it (as above), submit the form and
>> save it to the
>> same place. It _does_ change the content. You wind up
>> with 'Jim "the
>> Man" Davis' as your content.

>> I've seen people sometimes use ReplaceNoCase() to convert
>> " and other
>> html entities into double-quotes on the action page, but
>> then no-one can
>> enter an html entity in the form field, because those get
>> converted.

>> It's a lose-lose situation.

>> Same story with textareas.

>> #mytextarea#
>> 

>> Do the same thing you did with the text field he

RE: What is this???

2002-11-26 Thread Christine Lawson
Right, also URLScan can cause this take a look at these technotes: 
http://www.macromedia.com/v1/Handlers/index.cfm?ID=18599&Method=Full, 
http://www.macromedia.com/v1/Handlers/index.cfm?ID=22708&Method=Full

Regards,
Christine Lawson
Macromedia

-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:43 PM
To: CF-Talk
Subject: Re: What is this???


Have you turned on http compression in the IIS settings? If I remember 
correctly there are many problems with the built-in-http-compression 
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this at 

the
> top of a page from time to time.
> 
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status: 
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; 

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



Office XP anf CF

2002-11-26 Thread WebSite CFtalk
Hello,

I have not been able to use any of the examples on cfcomet on Word 2002.


Has something change from Word2000 to 2002?

Has anyone got working examples for Word2002?

Thanks
Helge Hetland
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: What is this???

2002-11-26 Thread Rob Rohan
Rather load balancer

Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 11:37 AM
To: CF-Talk
Subject: RE: What is this???


That's the same output I get when I go to the developers exchange and try to
log on.

Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com

-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:43 PM
To: CF-Talk
Subject: Re: What is this???


Have you turned on http compression in the IIS settings? If I remember
correctly there are many problems with the built-in-http-compression
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this
> at

the
> top of a page from time to time.
>
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status:
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/;


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: What is this???

2002-11-26 Thread Rob Rohan
Prolly has to do with

HTTP/1.1 400 Bad Request ( The data is invalid.  )
Via:1.1 SCW-ISA <
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 3116

Thats MS proxy is it not. Wonder if MS messes with header information... nah
why would they do that.

:)

Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 11:37 AM
To: CF-Talk
Subject: RE: What is this???


That's the same output I get when I go to the developers exchange and try to
log on.

Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com

-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:43 PM
To: CF-Talk
Subject: Re: What is this???


Have you turned on http compression in the IIS settings? If I remember
correctly there are many problems with the built-in-http-compression
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this
> at

the
> top of a page from time to time.
>
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status:
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/;


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: What is this???

2002-11-26 Thread Tony Weeg
and now, using cfmx no issue with cfform tags and those strange headers.

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:54 PM
To: CF-Talk
Subject: RE: What is this???


I only see that when I used to use cf5 and cfform tagsodd
things...very odd things.
and when I sent an email to the list, I got no good response either ;)

.tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Robert Everland [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:37 PM
To: CF-Talk
Subject: RE: What is this???


That's the same output I get when I go to the developers exchange and
try to
log on.

Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com 

-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:43 PM
To: CF-Talk
Subject: Re: What is this???


Have you turned on http compression in the IIS settings? If I remember 
correctly there are many problems with the built-in-http-compression 
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this 
> at

the
> top of a page from time to time.
> 
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status:
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/;



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: What is this???

2002-11-26 Thread Tony Weeg
I only see that when I used to use cf5 and cfform tagsodd
things...very odd things.
and when I sent an email to the list, I got no good response either ;)

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Robert Everland [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:37 PM
To: CF-Talk
Subject: RE: What is this???


That's the same output I get when I go to the developers exchange and
try to
log on.

Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com 

-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:43 PM
To: CF-Talk
Subject: Re: What is this???


Have you turned on http compression in the IIS settings? If I remember 
correctly there are many problems with the built-in-http-compression 
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this 
> at

the
> top of a page from time to time.
> 
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status:
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/;


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



Re: CFMX email help

2002-11-26 Thread Howie Hamlin
It means that your email server is not configured to allow relay mail from your 
ColdFusion server.  Typically, you would
add the IP address of the ColdFusion server to the allowed list of the mail server.

HTH,

--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.CoolFusion.com  - 631-737-4668 x101
inFusion Mail Server (iMS) - The Award-winning, Intelligent Mail Server
>>> Find out how iMS Stacks up to the competition: 
>http://www.coolfusion.com/imssecomparison.cfm

- Original Message -
From: "Kris Pilles" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 2:34 PM
Subject: CFMX email help


> I am unable to send email accept to accounts on my email erver::: I am
> getting the following error:
>
> Sending failed; nested exception is: javax.mail.SendFailedException:
> Invalid Addresses; nested exception is: javax.mail.SendFailedException:
> 550 5.7.1 Unable to relay for [EMAIL PROTECTED]
>
> Anybody know what is going on here???
>
>
> Kris Pilles
> Website Manager
> Western Suffolk BOCES
> 507 Deer Park Rd., Building C
> Phone: 631-549-4900 x 267
> E-mail: [EMAIL PROTECTED]
>
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: What is this???

2002-11-26 Thread Robert Everland
That's the same output I get when I go to the developers exchange and try to
log on.

Robert Everland III
Web Developer Extraordinaire
Dixon Ticonderoga Company
http://www.dixonusa.com 

-Original Message-
From: Peter Mayer [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:43 PM
To: CF-Talk
Subject: Re: What is this???


Have you turned on http compression in the IIS settings? If I remember 
correctly there are many problems with the built-in-http-compression 
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this 
> at

the
> top of a page from time to time.
> 
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status:
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/;

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: CFMX email help

2002-11-26 Thread Tony Weeg
looks like a mail server relay issue rather than a cf issue.
does the server have the authority to send messages to people
outside of the network it is on?

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Kris Pilles [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:35 PM
To: CF-Talk
Subject: CFMX email help


I am unable to send email accept to accounts on my email erver::: I am
getting the following error:

Sending failed; nested exception is: javax.mail.SendFailedException:
Invalid Addresses; nested exception is: javax.mail.SendFailedException:
550 5.7.1 Unable to relay for [EMAIL PROTECTED]

Anybody know what is going on here???


Kris Pilles
Website Manager
Western Suffolk BOCES
507 Deer Park Rd., Building C
Phone: 631-549-4900 x 267
E-mail: [EMAIL PROTECTED]



~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: PRN and NUL.cfm Attacks?

2002-11-26 Thread Haggerty, Mike
Seen a few, not an issue on my linux boxes.

M

-Original Message-
From: Joshua Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 1:37 PM
To: CF-Talk
Subject: PRN and NUL.cfm Attacks?


Has anyone else seen any of these "attacks" coming across their servers?

Someone has been scanning several of the sites on our server for: 
/nul.cfm and /prn.cfm

Information on the PRN Vulnerability: 
http://packetstormsecurity.nl/9906-exploits/windows.prn.flaw.txt
Information on the NUL Vulnerability: 
http://www.securiteam.com/windowsntfocus/5LP0C0K75M.html

Any information appreciated,

Joshua Miller


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Server Problems When Code is Not Locked (was RE: Application vari ables)

2002-11-26 Thread Haggerty, Mike
Doug;

Thanks for the reply.

Except for some custom modules I am not concerned with at this time, the
main application really only uses heavy SQL on one page (the one where it
places all the structures in the application scope). There it runs 26
queries, all of which take some time to run and return large amounts of
data.

The funny thing is, there has never been an error on this page. It always
runs as expected, the errors come on other pages.

Right now, the average time for a page to generate in the system is just
under 60 ms (but I think this is going up with the new data locking scheme).

There are no CFX tags in this part of the application (there is an ArcIMS
interface, part of a custom module I have put off dealing with until the
main application is under control).

I did just rewrite the application in Fusebox, though, which makes use of
custom tags in the core files...

Hopefully this is not the problem. The application is running on CF 4.5 on
NT4.

M

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 1:26 PM
To: CF-Talk
Subject: RE: Server Problems When Code is Not Locked (was RE:
Application vari ables)


In my experience, PCode errors were usually the result of not using cflocks
where needed.  IMHO, you are on the right track moving schtuff to the
request scope.  From an earlier posting by Mike Brunt, and what  I do in my
apps, I'd suggest using 

In Application.cfm





In OnRequestEnd.cfm





The onrequestend bit adds any NEW vars you introduced in the request scope
to be added to the session scope.  This way you need only use CFLOCK twice
in your whole application.  Be careful of CFABORT use with this though.  

As for these errors
>-
>Request cancelled or ignored by serverServer busy or unable to fulfill
>request. The server is unable to fulfill your request due to 
>extremely high
>traffic or an unexpected internal error.
>-

Check your page 'weight'.  Are you running heavy SQL?  CFX tags?  You may
need to tweak your SQL to run better and also play with the number of
simultaneous request limit in the CFADMIN tool.  What you set this at
depends on what your app does.  I have it set to 10 threads per CPU as my
app is very DB intense.  Others set this to 3-4 per CPU.  Also look at your
request timeout limit.  

HTH

Doug


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Large Corporations that use ColdFusion

2002-11-26 Thread Ben Arledge
FYI... Add NEC/Mitsubishi...

http://www.necmitsubishi.com/products/index.cfm

Cheers,
Ben

-Original Message-
From: Mike Brunt [mailto:[EMAIL PROTECTED]] 
Sent: November 19, 2002 8:07 AM
To: CF-Talk
Subject: RE: Large Corporations that use ColdFusion


Some clients I worked with on ColdFusion whilst at Allaire Macromedia
and since (many of these are internal so it is not apparent).

Alcatel
AT&T Wireless
Baylor College of Medicine
Carlson Companies (TGI Fridays - Wyndham Hotels etc)
eBay
Ernst and Young
Gambro Healthcare
IDG Publications
HealthStream
Hooked on Phonics
Loudcloud (A big 3 automaker client)
San Diego Gas and Electric
Sempra Energy
Sony Pictures
Southern California Gas

Hth
Mike Brunt - CTO
Webapper Services LLC
Blog - http://www.webapper.net
Downey CA Office
562.243.6255
AIM webappermb

Web Application Specialists

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Processing .htm files as .cfm

2002-11-26 Thread Tony Weeg
that's really cool christine, thanks for the page
I didn't know it was there, and sooo many of us
have tried to explain the easiest way to do it!!!

thanks again!

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Christine Lawson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:27 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


Take a look at this technote and change .dbm to .htm:
http://www.macromedia.com/v1/Handlers/index.cfm?ID=23258&Method=Full

Regards,
Christine Lawson
Macromedia

-Original Message-
From: David Notik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:19 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


That's actually a great question.

I've never tested it with CFMX, which is radically different in how it
processes everything (uses JRun, etc...).

I just now tried it, and IE just endlessly tries to open the file, which
leads me to believe that JRun.dll doesn't want to parse it.

Oh well.

--D

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 10:58 AM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm

is this cf5 or cfmx?

tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: chris regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:16 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


You have to change the IIS settings.
Under the Home Directory tab:
Click on Configuration.
Then find the cfm extension and copy the Executable Path.
Then change the htm path to read the same.  
Fred

-Original Message-
From: Paul Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:05 PM
To: CF-Talk
Subject: Processing .htm files as .cfm

Which file do i need to change to process .htm files as .cfm?

Thanks






~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



Re: What is this???

2002-11-26 Thread Peter Mayer
Have you turned on http compression in the IIS settings? If I remember 
correctly there are many problems with the built-in-http-compression 
(including just some header as output).

Peter

> I have debugging turned off in the cf admin, but I keep getting this at 

the
> top of a page from time to time.
> 
> HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 
17:14:07
> GMT Connection: close Content-type: text/html Page-Completion-Status: 
Normal
> Page-Completion-Status: Normal Page-Completion-Status: Normal Set-
Cookie:
> CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



CFMX email help

2002-11-26 Thread Kris Pilles
I am unable to send email accept to accounts on my email erver::: I am
getting the following error:

Sending failed; nested exception is: javax.mail.SendFailedException:
Invalid Addresses; nested exception is: javax.mail.SendFailedException:
550 5.7.1 Unable to relay for [EMAIL PROTECTED]

Anybody know what is going on here???


Kris Pilles
Website Manager
Western Suffolk BOCES
507 Deer Park Rd., Building C
Phone: 631-549-4900 x 267
E-mail: [EMAIL PROTECTED]


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



RE: What is this???

2002-11-26 Thread Tony Weeg
are you using cfform tags on the pages?
and are you running cf5?

I bet you are ;)

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: Shawn Regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:23 PM
To: CF-Talk
Subject: What is this???


Hello,

I have debugging turned off in the cf admin, but I keep getting this at
the
top of a page from time to time.

HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002
17:14:07
GMT Connection: close Content-type: text/html Page-Completion-Status:
Normal
Page-Completion-Status: Normal Page-Completion-Status: Normal
Set-Cookie:
CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; 

Any have any ideas?

TIA

Shawn Regan
pacifictechnologysolutions
15530-B Rockfield Blvd. Suite 4 
Irvine, CA 92618
949.830.1623
w w w . p t s 1 . c o m


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Processing .htm files as .cfm

2002-11-26 Thread Tony Weeg
are you having problems as well?

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: CKR [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:22 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


I'm using cf5 and IIS

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:58 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm

is this cf5 or cfmx?

tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: chris regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:16 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


You have to change the IIS settings.
Under the Home Directory tab:
Click on Configuration.
Then find the cfm extension and copy the Executable Path.
Then change the htm path to read the same.  
Fred

-Original Message-
From: Paul Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:05 PM
To: CF-Talk
Subject: Processing .htm files as .cfm

Which file do i need to change to process .htm files as .cfm?

Thanks





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm



RE: Processing .htm files as .cfm

2002-11-26 Thread Tony Weeg
no it works fine with cfmx, heck I have some .tony files
that are parsed by it, .anything can be parsed by either, its just that
the
setup for both is different. email me off list, if you want instructions
for
cfmx...i had much problems with this, and have got it down to a science
;)

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: David Notik [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 2:19 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


That's actually a great question.

I've never tested it with CFMX, which is radically different in how it
processes everything (uses JRun, etc...).

I just now tried it, and IE just endlessly tries to open the file, which
leads me to believe that JRun.dll doesn't want to parse it.

Oh well.

--D

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 10:58 AM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm

is this cf5 or cfmx?

tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: chris regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:16 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


You have to change the IIS settings.
Under the Home Directory tab:
Click on Configuration.
Then find the cfm extension and copy the Executable Path.
Then change the htm path to read the same.  
Fred

-Original Message-
From: Paul Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:05 PM
To: CF-Talk
Subject: Processing .htm files as .cfm

Which file do i need to change to process .htm files as .cfm?

Thanks





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Processing .htm files as .cfm

2002-11-26 Thread Christine Lawson
Take a look at this technote and change .dbm to .htm: 
http://www.macromedia.com/v1/Handlers/index.cfm?ID=23258&Method=Full

Regards,
Christine Lawson
Macromedia

-Original Message-
From: David Notik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:19 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


That's actually a great question.

I've never tested it with CFMX, which is radically different in how it
processes everything (uses JRun, etc...).

I just now tried it, and IE just endlessly tries to open the file, which
leads me to believe that JRun.dll doesn't want to parse it.

Oh well.

--D

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 10:58 AM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm

is this cf5 or cfmx?

tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: chris regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:16 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


You have to change the IIS settings.
Under the Home Directory tab:
Click on Configuration.
Then find the cfm extension and copy the Executable Path.
Then change the htm path to read the same.  
Fred

-Original Message-
From: Paul Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:05 PM
To: CF-Talk
Subject: Processing .htm files as .cfm

Which file do i need to change to process .htm files as .cfm?

Thanks





~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.



What is this???

2002-11-26 Thread Shawn Regan
Hello,

I have debugging turned off in the cf admin, but I keep getting this at the
top of a page from time to time.

HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Tue, 26 Nov 2002 17:14:07
GMT Connection: close Content-type: text/html Page-Completion-Status: Normal
Page-Completion-Status: Normal Page-Completion-Status: Normal Set-Cookie:
CFID=50195; path=/; Set-Cookie: CFTOKEN=39140289; path=/; 

Any have any ideas?

TIA

Shawn Regan
pacifictechnologysolutions
15530-B Rockfield Blvd. Suite 4 
Irvine, CA 92618
949.830.1623
w w w . p t s 1 . c o m

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Processing .htm files as .cfm

2002-11-26 Thread CKR
I'm using cf5 and IIS

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:58 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm

is this cf5 or cfmx?

.tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: chris regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:16 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


You have to change the IIS settings.
Under the Home Directory tab:
Click on Configuration.
Then find the cfm extension and copy the Executable Path.
Then change the htm path to read the same.  
Fred

-Original Message-
From: Paul Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:05 PM
To: CF-Talk
Subject: Processing .htm files as .cfm

Which file do i need to change to process .htm files as .cfm?

Thanks




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm



RE: Writing a file with CFFILE

2002-11-26 Thread Steve Reich
Run the code... then tell me it still won't work that way. Is it possible
you're wrong?

Steve

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 1:53 PM
To: CF-Talk
Subject: RE: Writing a file with CFFILE


umm... no ...

htmleditformat() converts potentially harmful characters ( <,> " etc ) into
html entities. An html entity is used to place characters in the display of
an html page which aren't supposed to be allowed ( although browsers often
if not usually allow them anyway ) in an html document without being part of
an html tag. htmleditformat(0 is a one-way conversion. You can of course,
unhtmleditformat() a variable manually, however, doing so prevents you from
placing proper html entities in the field since they would likely all be
converted back into the <>" etc which aren't supposed to appear in properly
formatted html documents.


  



myvar = #myvar#
htmleditformat(myvar) = #htmleditformat(myvar)#


since these 2 lines are not the same, and the contents of a textarea field
are passed literally ( they're not translated by the form submission ), the
content of myvar becomes what you see on line 2 after it's been converted
the first time with htmleditformat().

Unless this is a very new feature of CFMX that I've not heard about which
automatically reverts the string after a form submission. Although I would
doubt it considering that this would prevent people being able to enter html
entities into form fields and get html entities on the action page.

Off the top of my head, I'm not sure what's up with your example -- I
haven't tested it on my machine. If it is working, one of two things are
happening -- there's more code involved than in your example ( an
application.cfm maybe ) _or_ there's a bug somewhere, because it's not
supposed to work that way.

s. isaac dealey954-776-0046

new epoch  http://www.turnkey.to

lead architect, tapestry cms   http://products.turnkey.to

certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816



> Actually yes. Run this code in a blank page and save all day. Check
> the
> results in studio. As was my original problem, you are over thinking this.
> This is exactly what HTMLEditFormat() was designed for. Hope this clear up
> the confusion

> 
> 
>  addnewline="Yes">
> 
> 
>  method="post">
>  style="width:500px;height:400px">#HTMLEditFormat(output)# pu
> t>
> 
> 
> 

> Steve


> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 1:05 PM
> To: CF-Talk
> Subject: RE: Writing a file with CFFILE


> umm... no ...

> Try this

> 

> Then type 'Jim "the Man" davis' into that form field, drop it into a
> persistent variable or a database, retrieve it from that location and
> populate the form with it (as above), submit the form and save it to the
> same place. It _does_ change the content. You wind up with 'Jim "the
> Man" Davis' as your content.

> I've seen people sometimes use ReplaceNoCase() to convert " and other
> html entities into double-quotes on the action page, but then no-one can
> enter an html entity in the form field, because those get converted.

> It's a lose-lose situation.

> Same story with textareas.

> #mytextarea#

> Do the same thing you did with the text field here, only instead of
> double-quotes, this time enter ' name="somethingelse">'
> into the field. After you've edited it once, you no longer have html
> content
> you now have  ...

> I don't make this stuff up.

> s. isaac dealey954-776-0046

> new epoch  http://www.turnkey.to

> lead architect, tapestry cms   http://products.turnkey.to

> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816



>> Yes...it is. I am using just as you described and it is perfect!

>> Thanks,
>> Steve

>> -Original Message-
>> From: Kwang Suh [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, November 26, 2002 10:51 AM
>> To: CF-Talk
>> Subject: RE: Writing a file with CFFILE


>> Used properly, HTMLEditFormat() does not change the content.

>> If you type "Hello & Goodbye", into a form field, once submitted, it
>> becomes:

>> "Hello & Goodbye"

>> So, this is what you insert into the database.

>> Now, when you *display* the contents of that form field, *if* you *don't*
>> want the browser to parse it, then use HTMLEditFormat().

>> For instance, let's say we let the user edit that text again in a form
>> field.  Using HTMLEditFormat() within the value attribute of a form
>> field,
>> you will get:

>> "Hello & Goodbye"

>> *But* when the form is submitted, you get:

>> "Hello & Goodbye"

>> Using HTMLEditFormat() *is* the perfect, easy solution!

>>> -Original Message-
>>> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
>>> Sent: Tuesday, November 26

RE: Writing a file with CFFILE

2002-11-26 Thread Kwang Suh
No, it doesn't.

Jeez, I use this function every time I have a form element - including
 - and it ALWAYS works properly.

Otherwise, how in God's name are you ever going to be able to edit: Hello
"There"?  You HAVE to escape the quotes in the value attribute of an input
field - or else the tag breaks.

Try it out.  It WORKS.

> -Original Message-
> From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 11:53 AM
> To: CF-Talk
> Subject: RE: Writing a file with CFFILE
>
>
> umm... no ...
>
> htmleditformat() converts potentially harmful characters ( <,> "
> etc ) into
> html entities. An html entity is used to place characters in the
> display of
> an html page which aren't supposed to be allowed ( although browsers often
> if not usually allow them anyway ) in an html document without
> being part of
> an html tag. htmleditformat(0 is a one-way conversion. You can of course,
> unhtmleditformat() a variable manually, however, doing so
> prevents you from
> placing proper html entities in the field since they would likely all be
> converted back into the <>" etc which aren't supposed to appear
> in properly
> formatted html documents.
>
> 
>   
> 
>
> 
>   myvar = #myvar#
>   htmleditformat(myvar) = #htmleditformat(myvar)#
> 
>
> since these 2 lines are not the same, and the contents of a textarea field
> are passed literally ( they're not translated by the form
> submission ), the
> content of myvar becomes what you see on line 2 after it's been converted
> the first time with htmleditformat().
>
> Unless this is a very new feature of CFMX that I've not heard about which
> automatically reverts the string after a form submission. Although I would
> doubt it considering that this would prevent people being able to
> enter html
> entities into form fields and get html entities on the action page.
>
> Off the top of my head, I'm not sure what's up with your example -- I
> haven't tested it on my machine. If it is working, one of two things are
> happening -- there's more code involved than in your example ( an
> application.cfm maybe ) _or_ there's a bug somewhere, because it's not
> supposed to work that way.
>
> s. isaac dealey954-776-0046
>
> new epoch  http://www.turnkey.to
>
> lead architect, tapestry cms   http://products.turnkey.to
>
> certified advanced coldfusion 5 developer
> http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
>
>
>
> > Actually yes. Run this code in a blank page and save all day. Check
> > the
> > results in studio. As was my original problem, you are over
> thinking this.
> > This is exactly what HTMLEditFormat() was designed for. Hope
> this clear up
> > the confusion
>
> > 
> > 
> >  > addnewline="Yes">
> > 
> > 
> >  > method="post">
> >  >
> style="width:500px;height:400px">#HTMLEditFormat(output)# > pu
> > t>
> > 
> > 
> > 
>
> > Steve
>
>
> > -Original Message-
> > From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 1:05 PM
> > To: CF-Talk
> > Subject: RE: Writing a file with CFFILE
>
>
> > umm... no ...
>
> > Try this
>
> > 
>
> > Then type 'Jim "the Man" davis' into that form field, drop it into a
> > persistent variable or a database, retrieve it from that location and
> > populate the form with it (as above), submit the form and save it to the
> > same place. It _does_ change the content. You wind up with 'Jim
> "the
> > Man" Davis' as your content.
>
> > I've seen people sometimes use ReplaceNoCase() to convert
> " and other
> > html entities into double-quotes on the action page, but then no-one can
> > enter an html entity in the form field, because those get converted.
>
> > It's a lose-lose situation.
>
> > Same story with textareas.
>
> > #mytextarea#
>
> > Do the same thing you did with the text field here, only instead of
> > double-quotes, this time enter ' > name="somethingelse">'
> > into the field. After you've edited it once, you no longer have html
> > content
> > you now have  ...
>
> > I don't make this stuff up.
>
> > s. isaac dealey954-776-0046
>
> > new epoch  http://www.turnkey.to
>
> > lead architect, tapestry cms   http://products.turnkey.to
>
> > certified advanced coldfusion 5 developer
> > http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
>
>
>
> >> Yes...it is. I am using just as you described and it is perfect!
>
> >> Thanks,
> >> Steve
>
> >> -Original Message-
> >> From: Kwang Suh [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, November 26, 2002 10:51 AM
> >> To: CF-Talk
> >> Subject: RE: Writing a file with CFFILE
>
>
> >> Used properly, HTMLEditFormat() does not change the content.
>
> >> If you type "Hello & Goodbye", into a form field, once submitted, it
> >> becomes:
>
> >> "Hello & Goodbye"
>
> >> So, this is what you insert into the database.
>
> >> Now, when you *display* the contents of that form field, *if*

RE: Processing .htm files as .cfm

2002-11-26 Thread David Notik
That's actually a great question.

I've never tested it with CFMX, which is radically different in how it
processes everything (uses JRun, etc...).

I just now tried it, and IE just endlessly tries to open the file, which
leads me to believe that JRun.dll doesn't want to parse it.

Oh well.

--D

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 10:58 AM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm

is this cf5 or cfmx?

.tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 


-Original Message-
From: chris regan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:16 PM
To: CF-Talk
Subject: RE: Processing .htm files as .cfm


You have to change the IIS settings.
Under the Home Directory tab:
Click on Configuration.
Then find the cfm extension and copy the Executable Path.
Then change the htm path to read the same.  
Fred

-Original Message-
From: Paul Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:05 PM
To: CF-Talk
Subject: Processing .htm files as .cfm

Which file do i need to change to process .htm files as .cfm?

Thanks




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm



RE: Freeware mail servers

2002-11-26 Thread Pete Freitag
have you looked into JAMES? http://jakarta.apache.org/james/ it's an open
source java mail server. It is configured via XML files, but you can do some
powerful stuff with it like store mail in a JDBC datasource, or write custom
mail filters in java.

_
Pete Freitag
CTO, CFDEV.COM
http://www.cfdev.com/


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com



RE: Java in CF (CFMX)

2002-11-26 Thread Rob Rohan
I think someone at MM should look up BSF.

Rob

http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-Original Message-
From: Jeffrey Polaski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 10:50 AM
To: CF-Talk
Subject: RE: Java in CF (CFMX)


Personally, I'd like to see CF Script expanded to deal with strongly typed
code. It would be extremely cool to be able to run code from a different
languages in a cfscript block (kinda' like MS's Scripting Host).

I can see a couple of other benefits to having inline Java code:

Stronger types for variables. (well, stronger types for /values/).
Sometimes it's extremely useful to have strong types. For example, I worked
on using native COM datasets in CF a few years back and we had a lot of
problems converting the native COM dataset into a CF query. was a huge
performance hit for a CF script to loop over each field, convert it, and
stuff it in a CF query. If CF could (optionally) deal with different types I
think it would have been a lot easier to do, and a cfscript block would be a
great place for this. Also, it would be *great* to be able to pass functions
around as values--that alone would certainly simplify my code in places.

One of CF's great benefits is it's simplicity, but sometimes it's
important to be able to get out of the simple tag-based techniques of CF and
into more "advanced" techniques. When I'm developing, sometimes I want to be
able to just dump some code on a page and thrash away. It gets in the way to
have to develop separate components. After I'm done thrashing out some code,
I want to make sure it's clean and maintainable, and put it into components,
though. It's just nice to have the option.

I know basically nothing about the actual behind-the-scenes architecture of
CF, so take this with a grain of salt, but I don't see why CF couldn't just
automatically compile a cfscript block as a separate class if you added a
keyword to it, like: . There is already a lot of
code generation going on when CF creates the class files from a CF page.

Well, just my $0.02...








   Jeff Polaski
   "The cow is of the bovine ilk;
One end is moo, the other, milk."
   -- Ogden Nash




-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 23, 2002 9:30 PM
To: CF-Talk
Subject: Re: Java in CF (CFMX)


I am really late to this thread -- been doin' other interesting stuff.

There are one (or two, or forty) reasons that have not been mentioned,
that make inline Java code a benefit.

1) Where needed in an app, you can get strong typing and nulls -- say
you want to communicate with a JDBC driver and retrieve Table/Column
attributes from a db -- most JDBC drivers provide this info, but you
can't get at it directly form CMFX.

2) Where CFMX can act as a gentle introduction to Java -- certainly
this hybrid code would  not be the best, but it would allow Java
neophytes, like myself, to learn Java gracefully, without having to
learn all the rules first.  -- There is something about the fact that
we can learn our native language, better, by the age of 5, than a
person with 4 years of college courses on that language -- simple
introduction, constant use, familiarity-- a lot of us "Learn by Doing!"

3) This would put /keep CF at the head of the pack -- one more
significant reason to choose CF over the competition -- EasyJava --
choose the language/implementation that makes the most sense for an
application and/or a tier.

Dick

P.S.  while I am asking for things, I'd like to see a ...
tag -- does the same thing (and does not deprecate the  tag--
just a lot easier to type (and pretty self-documenting, and makes a lot
more sense than that <%= crap!)




On Friday, November 22, 2002, at 08:56 AM, Rob Rohan wrote:

> I understand your decision but I have a couple more things to add,
> then I'll
> shut up.
>
> 1) To me CFSCRIPT is to Cold Fusion 5 what CFJAVA would've been to
> CFMX.
>
> 2) I also don't think people would just use a cfjava block to just use
> it.
> There would have to be a need. (I.E. a custom java tag that doesn't
> need to
> be installed)
>
> 3) I would like to play with inner classes / threads on a page and
> casting
> to thing (like a CF list to a hashtable - don't even know if that would
> work, but you get the idea).
>
> 4) There could be performance gains beyond code execution. For
> example, when
> you make a cfm page into a class it adds a bunch of \r\t which is
> necessary
> in almost all cases (but certain blocks could be controlled)
>
> Thanks for listening Phil and all you wacky MM guys
>
> Rob
>
> Certified Organic
> "When you put things in quotes, people think someone actually said it."
> http://treebeard.sourceforge.net
> http://ruinworld.sourceforge.net
> Scientia Est Potentia
>
> -Original Message-
> From: Phil Costa [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 22, 2002 6:09 AM
> To: CF-Talk
> Subject

RE: Server Problems When Code is Not Locked (was RE: Application vari ables)

2002-11-26 Thread Douglas.Knudsen
In my experience, PCode errors were usually the result of not using cflocks where 
needed.  IMHO, you are on the right track moving schtuff to the request scope.  From 
an earlier posting by Mike Brunt, and what  I do in my apps, I'd suggest using 

In Application.cfm





In OnRequestEnd.cfm





The onrequestend bit adds any NEW vars you introduced in the request scope to be added 
to the session scope.  This way you need only use CFLOCK twice in your whole 
application.  Be careful of CFABORT use with this though.  

As for these errors
>-
>Request cancelled or ignored by serverServer busy or unable to fulfill
>request. The server is unable to fulfill your request due to 
>extremely high
>traffic or an unexpected internal error.
>-

Check your page 'weight'.  Are you running heavy SQL?  CFX tags?  You may need to 
tweak your SQL to run better and also play with the number of simultaneous request 
limit in the CFADMIN tool.  What you set this at depends on what your app does.  I 
have it set to 10 threads per CPU as my app is very DB intense.  Others set this to 
3-4 per CPU.  Also look at your request timeout limit.  

HTH

Doug


>-Original Message-
>From: Haggerty, Mike [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, November 26, 2002 1:08 PM
>To: CF-Talk
>Subject: Server Problems When Code is Not Locked (was RE: Application
>vari ables)
>
>
>Here is a case study in the use of locks around session and application
>variables. Read on, at the end I have a few questions to the 
>great minds and
>gurus of this list (especially Raymond Camden). 
>
>The project I am working on right now is the rewrite of an 
>application which
>never should have gone into production in the first place. The 
>application
>was written three years ago and errors abound (common messages 
>shown below):
>
>-
>Error Diagnostic Information
>unknown error condition
>unknown error while executing a tag
>-
>
>Or: 
>
>-
>Request cancelled or ignored by serverServer busy or unable to fulfill
>request. The server is unable to fulfill your request due to 
>extremely high
>traffic or an unexpected internal error.
>-
>
>We see at least 50 of these in the application log daily, much 
>more around
>election time when traffic skyrockets. Every once in a while I 
>also see a
>PCode error, but I don't have the syntax in front of me.
>
>The app runs on NT 4 with CF4.5 and makes extensive use of 
>application and
>session variables. By extensive, I mean it has large 
>structures contained in
>the application scope and calls data from them 10 - 80 times 
>per page. I
>looked at the CPU usage for Cold Fusion to determine the total 
>amount of
>data in the application scope, and saw it go up from about 
>3k to 89000k
>just when the application loads. So there is a lot of data, 
>but that should
>not be a big issue - the app is running on a pretty powerful server.
>
>The challenge, it would seem, is to have the code access the 
>data properly.
>
>The code possesses no locks anywhere (!). What I am doing is 
>exclusively
>locking all of the application and session variables when they 
>are set, and
>putting readonly locks around these variables whenever they 
>are read. My
>code looks like this:
>
>
>  
>
>  
>
>
>  timeout="10"
>type="EXCLUSIVE">
>
>index="dex">
>   listgetat(application.state_names_list, dex), "")>
>
>   ... do more stuff ...
>
>
>  
>
>
>I am taking the entire session scope and setting it to a 
>request variable at
>the top of every page, and calling these request variables when needed
>(doing it this way...):
>
>
>  
> 
>#request.session.state_name# 
>.. Calling variables from the request scope instead of session
>
>I am doing something similar with application variables by 
>putting specific
>structures in the request scope on pages where they are used, a la:
>
>
>  structCopy(application.senate_demographic_data[request.session.state])>
>
>#request.senate_demographic_data[request.session.stat
>e_name]["min_
>bus"]# 
>.. Calling variables from the request scope instead of application
>
>My question is, does it sound like I am addressing the core 
>problem or am I
>just enhancing the code? Could the real problem be with the 
>amount of data
>in the application scope, or is there something else I am not 
>thinking of?
>Does anyone have any advice on how to pinpoint the exact cause of the
>problems I am running into (or have any experience with 
>applications using
>this much data in shared memory)? Am I writing these locks as 
>efficiently as
>possible? Should I be thinking about working with my sysadmin 
>to fine-tune
>the server, and, if so, what kinds of things should I be looking for?
>
>I am about halfway done with locking down the code, and 
>haven't run into the
>same problems with the rewritten code. The server has frozen 
>several times
>and required me to restart Cold Fusion server, but this could 
>be attributed
>to the old code. 
>
>Wh

  1   2   >