[OS-webwork] Check if Collection is Empty

2003-12-06 Thread Rajagopal. V
I would like to check if a collection is empty and if not, print some messages. Is there a tag to check if a collection is empty in my JSPs? Right now, this one works webwork:if test=errorMessages There are Errors like . /webwork:if is there a better way or another tag to do this? Thanks

Re: [OS-webwork] Check if Collection is Empty

2003-12-06 Thread Francisco Hernandez
thats the only way iv'e seen it done, but you could use also test=errorMessages.isEmpty(), i believe test=errorMessages will just just if the property is null. Rajagopal. V wrote: I would like to check if a collection is empty and if not, print some messages. Is there a tag to check if a

Re: [OS-webwork] Check if Collection is Empty

2003-12-06 Thread Hani Suleiman
Or errorMessages/empty == true On Dec 6, 2003, at 6:46 PM, Francisco Hernandez wrote: thats the only way iv'e seen it done, but you could use also test=errorMessages.isEmpty(), i believe test=errorMessages will just just if the property is null. Rajagopal. V wrote: I would like to check if a