I was thinking that doing it this way would be quicker than
looping over a recordset - definately quicker to implement.
It's something I picked up from Java - means that if the
design of the structure changes there is no need to fix the data source input or
pullback coding. I am still a newbie in the world of ColdFusion but really like
the speed of development and the (apparent?) similarities with
j2ee.
I'll let you know how it goes.
Sam
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 April 2004 11:39
To: [EMAIL PROTECTED]
Subject: RE: [ cf-dev ] Serialise a Structure?
yes, although can't think i've ever used it to do this (usually just used it for transferring CF queries to _javascript_).
| "Sam Westlake"
<[EMAIL PROTECTED]>
09/04/2004 11:28 | To: <[EMAIL PROTECTED]> cc: Subject: RE: [ cf-dev ] Serialise a Structure? |
Sorry - not very accurate with my first question. The user will have an option to persist the structure state using some sort of HCI event - button click - and then persist the structure.
Is this when <cfwddx> comes into play?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 09 April 2004 11:24
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Serialise a Structure?
how're you going to know when the session ends? bearing in mind this could be when they logout from your site (assuming that you're using some logged-in method for setting the session), close their browser, or just when it automatically times out due to inactivity.
| "Sam Westlake"
<[EMAIL PROTECTED]>
09/04/2004 11:19 |
To: <[EMAIL PROTECTED]> cc: Subject: [ cf-dev ] Serialise a Structure? |
Hi All,
Not sure if anyone will be around today as it is a bank holidday, but here goes.
I am persisting a Struct() as a session variable - at the end of the session I want to be able to serialise the structure and store it as a string in a database. Then deserialise it when ever I want to.
Can I do this in CF or do I need to drill down to J2EE? Say it isn't so! Maybe CFC's?
Sam Westlake
