tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <bay...@essentially.net>
Subject RE: Root Element Error
Date Wed, 07 Aug 2002 15:55:08 GMT
On Wed, 7 Aug 2002, Ben Ramsey wrote:

> > The easiest way to lump 'empty' and 'null' together is with the
> > JSTL EL's 'empty' keyword, as in
> > ${empty param.foo}
> 
> So, I would use that like this?:
> 
> <c:if test="${empty param.foo}">
>   Body content.
> </c:if>

Sure - as in

 <c:if test="${empty param.name}">
   You must enter your name!
 </c:if>

"JSTL in Action" has a large section devoted to form validation of this
type.

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message