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 ]-=
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198177
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