Thanks Naresh G [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => nareshg [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> Thanks Naresh G [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Dan [ip] => webforumsuser@m [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> You have attempted to dereference a scalar variable oftype class java.lang.String as a structure with members. - Coldfusion - Advanced Techniques

You have attempted to dereference a scalar variable oftype class java.lang.String as a structure with members. - Coldfusion - Advanced Techniques

All, I am getting this error while running the following code and I am not able to debug. Any help on this, would greatly appreciated. <cfif IsDefined("URL.catpg")> <cfinvoke component="#application.aHTML#" method="formatAppURL" action="#VisaApp.FullURL##XFA.ValidateLogin#&CatPg =#URL.catpg#&cache=N" returnvariable="myURL"/> <cfset newURL = ""> <cfset variables.ParmsToPass = ""> <cfset formList = "FIELDNAMES,fuseaction,type,txtUserID,txtPassword, initialFA,logincount,dt1"> <cfloop collection="#form#" item="element"> <cfif ListFindNoCase(formList, element) EQ 0> <!--- <cfset variables.ParmsToPass = "#variables.ParmsToPass#&#element#=#form[element]#"> ---> <cfset "url.#element#" = "#form[element]#"> <cfset "session.#element#" = "#form[element]#"> </cfif> </cfloop> </cfif> Thanks Naresh G...

  1. #1

    Default You have attempted to dereference a scalar variable oftype class java.lang.String as a structure with members.

    All,
    I am getting this error while running the following code and I am not able to
    debug. Any help on this, would greatly appreciated.

    <cfif IsDefined("URL.catpg")>
    <cfinvoke component="#application.aHTML#" method="formatAppURL"
    action="#VisaApp.FullURL##XFA.ValidateLogin#&CatPg =#URL.catpg#&cache=N"
    returnvariable="myURL"/>
    <cfset newURL = "">

    <cfset variables.ParmsToPass = "">
    <cfset formList =
    "FIELDNAMES,fuseaction,type,txtUserID,txtPassword, initialFA,logincount,dt1">
    <cfloop collection="#form#" item="element">
    <cfif ListFindNoCase(formList, element) EQ 0>
    <!--- <cfset variables.ParmsToPass =
    "#variables.ParmsToPass#&#element#=#form[element]#"> --->
    <cfset "url.#element#" = "#form[element]#">
    <cfset "session.#element#" = "#form[element]#">
    </cfif>
    </cfloop>
    </cfif>

    Thanks
    Naresh G

    nareshg Guest

  2. #2

    Default Re: You have attempted to dereference a scalar variableof type class java.lang.String as a structure with members.

    Strictly guesses but, on this line
    <cfset "session.#element#" = "#form[element]#">

    since you don't have a cfoutput tag anywhere, both sides of the equal signs
    are considered strings (I think), so you are using cfset to set one string to
    another, which won't work. Plus, you are not attempting to set a variable.

    Originally posted by: nareshg
    All,
    I am getting this error while running the following code and I am not able to
    debug. Any help on this, would greatly appreciated.

    <cfif IsDefined("URL.catpg")>
    <cfinvoke component="#application.aHTML#" method="formatAppURL"
    action="#VisaApp.FullURL##XFA.ValidateLogin#&CatPg =#URL.catpg#&cache=N"
    returnvariable="myURL"/>
    <cfset newURL = "">

    <cfset variables.ParmsToPass = "">
    <cfset formList =
    "FIELDNAMES,fuseaction,type,txtUserID,txtPassword, initialFA,logincount,dt1">
    <cfloop collection="#form#" item="element">
    <cfif ListFindNoCase(formList, element) EQ 0>
    <!--- <cfset variables.ParmsToPass =
    "#variables.ParmsToPass#&#element#=#form[element]#"> --->
    <cfset "url.#element#" = "#form[element]#">
    <cfset "session.#element#" = "#form[element]#">
    </cfif>
    </cfloop>
    </cfif>

    Thanks
    Naresh G



    Dan Guest

  3. #3

    Default Re: You have attempted to dereference a scalar variableof type class java.lang.String as a structure with members.

    Some values of form[element] may be structures.
    This code tries to treat them as strings:
    <cfset "url.#element#" = "#form[element]#">
    <cfset "session.#element#" = "#form[element]#">

    Try this syntax:
    <cfset "url.#element#" = form[element]>
    <cfset "session.#element#" = form[element]>

    If that doesn't work, post the exact error message -- including the offending
    line #.

    Regards,
    -- MikeR


    MikerRoo Guest

Similar Threads

  1. dereference a scalar variable of type classjava.lang.String
    By Smiller in forum Macromedia ColdFusion
    Replies: 2
    Last Post: April 5th, 12:13 PM
  2. dereference a scalar variable of type class java.lang
    By David in forum Macromedia ColdFusion
    Replies: 0
    Last Post: February 17th, 11:53 PM
  3. Replies: 0
    Last Post: August 8th, 11:18 AM
  4. Replies: 2
    Last Post: July 11th, 05:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •