1 Reply Latest reply on May 3, 2006 12:27 PM by MikerRoo

    referencing structure key

      I need to check that a structure key 'entrust-client' exists and am having a problem due to the '-'. My code is as follows. Anyone know the correct syntax to reference this key?


        • 1. Re: referencing structure key
          MikerRoo Level 1
          '-' works fine in structKeyexists(), that's not the problem.

          Do it like this:
          <CFSET zClientRequest = getHttpRequestData ()>
          ... ...
          #structKeyexists (zClientRequest.headers, "entrust-client")#

          If that doesn't work, do a <CFDUMP var="#zClientRequest#"> and make sure that that key really does exist just under headers.