structIsEmpty() doesn't work for
[structIsEmpty("Form") For Me its throwing some java
exception...
FYI
I just joined cold fusion world few weeks back and making
changes in on going application, I am refering devloper guide and
refernce which I downloaded from adobe web site. I apploguize for
making some false comment
Thanks
ThePolarExpress
quote:
Originally posted by:
Newsgroup User
> Ther is possiblity in my application user come to data
process form without
> visiting data input form. In that case my application
throwing an error beacuse
> I am not verify Form and URL filed are empy.
>
> so my question is how do we check weather FORM and URL
contain any fields or
> not. I found soln for FORM but not for URL. The URL
doesn't have property like
> fieldnames.
Sure. But you've been given the answer to this by Ian and
myself already.
--
Adam
Textthepolarexpress wrote:
> structIsEmpty() doesn't work for
[structIsEmpty("Form") For Me its throwing some java
exception...
You are using the function incorrectly. The quotes cause
ColdFusion to treat the value as a string. ie The literal word
"Form". That causes an error because the function expects a
structure object, not a string.
Remove the quotes around FORM.
<cfif structIsEmpty(FORM)>
it is empty
<cfelse>
not empty
</cfif>