yup, the following does not carry over form.foo to the request scope:

<cfset form["foo"] = "bar">
<cfset request = duplicate(form)>

<cfdump var="#form#">
<cfdump var="#request#">

it has to be the contents that you carry over.

I've never needed specifically to copy entire scopes to other scopes before,
so thats why I've never come across this. Ah well, its nice to learn new
quirks, especially on a Friday!

> -----Original Message-----
> From: Rich Wild [mailto:[EMAIL PROTECTED]
> Sent: 27 June 2003 15:36
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] Request structure not behaving - Urgent
> 
> 
> read my last email, in which I solved it for you.
> 
> I guess you can't overwrite the entire request scope with 
> another scope, it
> has to be the contents that overwrite each other...
> 
> > -----Original Message-----
> > From: Jolly Green Giant [mailto:[EMAIL PROTECTED]
> > Sent: 27 June 2003 15:34
> > To: [EMAIL PROTECTED]
> > Subject: RE: [ cf-dev ] Request structure not behaving - Urgent
> > 
> > 
> > Request.dr and its three "elements" exist before the tag is 
> > called, but not 
> > within the tag... apparently.  I added two comment lines 
> > below that tell 
> > you when I did a dump and what I saw.
> > P.S.  When it says "now including a template", I mean that 
> > the code below 
> > is the code of the template.  Same with tags.
> > Thanks for your help guys.  Hopefully we can get this sorted out.
> > 
> > <!--- 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>
> > <!--- DUMP the Request scope:  I see that the three session 
> > vars above have 
> > been "copied" correctly and that they are now in the request 
> > scope --->
> > <!--- include is now done --->
> > <!--- back in my base template --->
> > <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="">
> > <!--- DUMP the Request scope:  I see nothing in the request 
> scope --->
> > <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]


-- 
** 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