>class files just by using cfobject.
Just a quick example of leveraging a "built-in" Java class in CFMX:
<cfscript>
st = createObject("Java", "java.util.StringTokenizer");
st.init("This is my a|b String", " |", false); // call the constructor.
pass in space and "|" as separater chars, and the false means that we don't
want the separaters returned as tokens
writeOutput("Tokens:" & st.countTokens() & "<br/>"); // display the token
count
while (st.hasMoreTokens()) { // loop through all of the tokens and just
output one token per line
writeOutput(st.nextToken());
writeOutput("<br/>");
}
</cfscript>
-d
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

