5 Replies Latest reply on Dec 24, 2006 12:21 PM by BKBK

    Dynamically Generate an Application.cfm

    Level 7
      I am attempting to dynamically generate an individual application.cfm for
      rescues that are inserted into their custom folder when they sign up. I am
      having problems with it. I am getting a java error. Can anyone see what I am
      doing wrong and what to fix?

      <cfset aName="huskyrescue">

      <cfcontent variable="fileApp">
      <cfapplication name="#aName#" setclientcookies="yes" sessionmanagement="yes"
      loginstorage="Session" applicationtimeout="#createtimespan(1,0,0,0)#"
      sessiontimeout="#createtimespan(0,2,0,0)#">
      <cfset Request.MyDSN = "MyDSN">
      </cfcontent>

      <cffile action="write" file="E:/webs/website/#aName#/application.cfm"
      output="#fileApp#">