struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Nunnari <roberto.nunn...@supsi.ch>
Subject Re: S2 substitute for jstl empty operator
Date Mon, 18 Jun 2007 17:25:37 GMT
Hello Guillame.

That is intended to check a List is empty, but it doesn quite substitute
the empty operator.. The empty operator tests for null, empty strings
and empty arrays..

I must then assume there's no single substitute?

..and how's about empty strings?

Best regards.


Guillaume Carré wrote:
> 2007/6/16, Roberto Nunnari <roberto.nunnari@supsi.ch>:
>> humm... it seams that:
>> <s:if test="%{myvar}">
>> suffices for testing null..
>>
>> is that the correct usage? Best practices for the original problem?
> 
> have you tried this?
> <s:if test="%{myvar.isEmpty}">


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message