Hey Joe, I'm a bit new to this java stuff but I would of thought that I
could simply run it.  What do I have to do to get the java code snippet to
run.  Right now, it just passes it to the browser so I can view it in the
source.  Tks.

DRE

-----Original Message-----
From: Joe Eugene [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 09, 2002 10:58 PM
To: CF-Talk
Subject: RE: Jsp Vs Cfm (CFMX) -- Code


Ok.. code to my post earlier.... i couldnt sleep.. had to test this out... I
was surprised at the results....am NOT posting results.. anyone interested
can use the below code..

JSP code run in CMFX Enterprise
<%
  long z=0;
  for(long x=1;x<=1000000;x++){
        z=z+x;
        }
  out.println(z);
%>

CFM code run in CFMX Enterprise
<cfscript>
 z=0;
 for(x=1;x lte 1000000;x=x+1){
        z=z+x;
        }
 writeOutput(z);
</cfscript>

Joe






-----Original Message-----
From: Joe Eugene [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 6:29 PM
To: CF-Talk
Subject: Jsp Vs Cfm (CFMX)


I am curious..

How does Jsp Scale/Perform against Cfm in the same JRUN or CFMX environment?

Both Jsp and Cfm are compiled servlets right.. so you if you had the same
code in Jsp and Cfm running under CFMX... would there be any performance
difference?


Joe Eugene
Certified Advanced ColdFusion Developer



______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to