ah, gotcha. didn't know where they fit it... got them sorted now.. thanks
On Thu, 10 Mar 2005 08:05:10 -0600, Raymond Camden <[EMAIL PROTECTED]> wrote:
> You can't put a UDF method in a CFC method. Nor can you put a UDF in a UDF.
>
> On Thu, 10 Mar 2005 08:15:13 -0500, K0rneliuz Van Strauss XIV
> <[EMAIL PROTECTED]> wrote:
> > Thought I'd switch an app i am working on to use application.cfc. when
> > i took the functions i had in my application.cfm page into the
> > onRequest function... i get this error:
> >
> > Unable to complete CFML to Java translation.
> > Error information unsupported statement: class
> > coldfusion.compiler.ASTfunctionDefinition
> >
> > The code is as follows:
> >
> > <cffunction name="onRequest" returnType="void">
> > <cfargument name="thePage" type="string" required="true">
> > <cfscript>
> > if (not isDefined("request.objCom") or
> > isDefined("url.releaseObject"))
> > {
> > request.objCom =
> > createObject("component","assets/com/tacfug");
> > }
> > function ses()
> > {
> > var UrlVars=ReReplaceNoCase(trim(cgi.Path_Info),
> > '.+\.cfm/? *', '');
> > var loopcount=ListLen(urlvars, '/');
> > var potential="";
> > if (cgi.script_name EQ cgi.path_info)
> > return 0;
> > for(i=1;i LTE loopcount; i=i+1)
> > {
> > potential=trim(listgetat(UrlVars, i, '/'));
> > url[listFirst(potential,"=")] =
> > listlast(potential,"=");
> > }
> > return 1;
> > }
> > function appRoot()
> > {
> > var result = "http://" & http_host;
> > if(listLen(script_name,"/"))
> > {
> > result = result &
> > listDeleteAt(script_name,listLen(script_name,"/"),"/") & "/";
> > }
> >
> > return result;
> > }
> > ses();
> > appUrl = appRoot();
> > </cfscript>
> > <cfinclude template="#arguments.thePage#">
> > </cffunction>
> >
> > any ideas?
> > --
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ Single Dads ]-=
> > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-[ http://single-dads.us ]-=
> >
> >
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198180
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54