[EMAIL PROTECTED] wrote:
> How do i do: if (list.size() == 0) response.sendRedirect("error.jsp")   with taglibs?
> is there a kind is <mm:size /> for a list?
Yes.

http://www.mmbase.org:8070/testing/mmdocs/taglib/size.jsp (RTFM)

But, of course, <mm:size /> will never be reached if the list is empty.

It is in the FAQ (but, granted, rather concisely):

http://www.mmbase.org:8070/testing/mmexamples/taglib/tipsandtricks.jsp#listempty 

ok then:

<mm:list ... >
 <mm:first>
  <mm:import id="notempty" />
 </mm:first>
</mm:list>

<mm:notpresent referid="notempty">
  <%= response.sendRedirect(.. %>
</mm:notpresent>

 Michiel

-- 
Michiel Meeuwissen 
Mediapark, C 107 tel. +31 (0)35 6772979



Reply via email to