Hey peoples
Am working on some server side error handling and was wondering how I would
go about maintaining variables created in the cfcs across the multiple calls
For example
so
<cfscript>
validateForm(fieldName="username";required="yes";type=alphanumeric);
validateForm(fieldName="password";required="yes";type=alphanumeric);
validateForm(fieldName="firstname";required="yes";type=alphanumeric);
validateForm(fieldName="surname";required="yes";type=alphanumeric);
</cfscript>
this needs to compile all the results into a single struct called catchArg.
then that struct gets passed into another cfc called
errorDisplay(struct=catchArg); wihch displays the form validation error
message
Previously i was using cfmodule and I just went ..............
<cfif NOT isDefined("caller.catchArg")>
<cfset caller.catchArg = StructNew()>
</cfif>
............. within the module and it set up the struct in the calling page
for me to assign the keys to. I dont want to have write "catchArg =
StructNew()" everytime i want to do some validation
thats what I want to do with the cfc but how would you do it
Basicaly i need to keep the same struct and add keys to it through all calls
to the method
Can this be done?
Steve
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/