using this expression in a
. That may clarify what your test expression evaluates to.
Lev.
-Original Message-
From: Wim Bervoets [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:01 AM
To: '[EMAIL PROTECTED]'
Subject: testing on empty string or null with jstl
> Well, on the previous page (with the form post) there is a type="text" maxLength="50" size="25" name="friendsEmail1"> , so the
> parameter friendsEmail1 is probably in the http request
> (value: empty string
> but not null)
empty string if the user didn't fill in anything offcourse...
--
To
> according to the specs, I believe EL will evaulate null value to zero
> length string.
>
> if you treat zero length string and null as the same condition, does
> that work for your situation?
>
> I'm a little confused by the example you provide. the first
> when checks
> to make sure name a
Thanks that did the trick :-)
Wim
> -Original Message-
> From: Pedro Diaz [mailto:[EMAIL PROTECTED]]
> Sent: dinsdag 2 april 2002 17:20
> To: Tag Libraries Users List
> Subject: Re: testing on empty string or null with jstl
>
>
> Hi.
>
> Try
>
>
Hi.
Try
instead of
Greetings
Wim Bervoets wrote:
> Hello,
>
> I have the following code:
>
>
>
> email something
>
>
> []
> []
> []
> [<%=request.getParameter("yourName")%>]
> [<%=request.getParameter("yourEmail")%>]
> [<%=reques
according to the specs, I believe EL will evaulate null value to zero
length string.
if you treat zero length string and null as the same condition, does
that work for your situation?
I'm a little confused by the example you provide. the first when checks
to make sure name and email are not nu
Hello,
I have the following code:
email something
[]
[]
[]
[<%=request.getParameter("yourName")%>]
[<%=request.getParameter("yourEmail")%>]
[<%=request.getParameter("friendsEmail1")%>]
If the request paramaters are not em