have you tried without using the session???  e.g just writing all the
variables to the request scope instead?

e.g.

<cfscript>
    if (not isdefined("request.dr")) request.dr = structNew();
    structInsert(request.dr, "formpage", "q_p_d_download.cfm", "yes");
    structInsert(request.dr, "actionpage", "q_p_d_downloadp.cfm", "yes");
    structInsert(request.dr, "resultspage", "q_p_d_downloadr.cfm", "yes");
 </cfscript>

If that works, I guess we can take it from there.

Can I ask a question though?  Is there any reason these filenames need to be
stored in the session?


----- Original Message ----- 
From: "Jolly Green Giant" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 3:04 PM
Subject: [ cf-dev ] Request structure not behaving - Urgent


>       Guys, I need toget this fixed fast.  I hope someone can
> help.  Fortunately the code is rather simple.  I have an include or two
and
> a custom tag in  there, so I'm going to put down the code as it is
> interpreted, with comments  letting you know when I've switched to an
> included file or tag.
>       Now if you run this code, you'll find that it works just fine as one
> template.  Somehow my request scope is not making it to the tag called at
> the bottom.  I've used dumps to confirm this.  I thought that was the
whole
> point to the Request scope.  Why is it doing that?
>
> And I think that the fact that there is including and tagging going on
>
> <!--- Now in my base template --->
> <!--- Now including a header template to set some vars and copy the
session
> structure --->
> <cflock scope="session" type="exclusive" timeout="3">
>       <cfscript>
>            if (not isdefined("session.dr")) {session.dr = structnew();}
>            session.dr.formpage = "q_p_d_download.cfm";
>            session.dr.actionpage = "q_p_d_downloadp.cfm";
>            session.dr.resultspage = "q_p_d_downloadr.cfm";
>       </cfscript>
> </cflock>
> <cflock scope="session" type="readonly" timeout="3">
>       <cfset request = duplicate(session)>
> </cflock>
> <!--- include is now done --->
> <h2>Download Request</h2>
> <p>
> Fill in the applicable information below to receive your download.
> </p>
> <!--- now calling a tag with an attribute: id=1 --->
> <cfparam name="attributes.id" default="">
> <h4>Your Information</h4>
> <!--- the next line is the line that errors, saying: Error resolving
> parameter REQUEST.DR.ACTIONPAGE  The object DR.ACTIONPAGE is not present
in
> the scope named REQUEST. --->
> <form name="form1" action="<cfoutput>#request.dr.actionpage#</cfoutput>"
> method="POST" onsubmit="return check();" >
>
>
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to