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:198169
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to