KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > jsp > taglib > RemoveItemTag


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.bridge.jsp.taglib;
12
13 import javax.servlet.jsp.JspTagException JavaDoc;
14
15 /**
16  * Removes the current item from the list. In a 'reuse' of the list, the item will not be present any
17  * more.
18  *
19  * @author Michiel Meeuwissen
20  * @version $Id: RemoveItemTag.java,v 1.4 2005/01/30 16:46:35 nico Exp $
21  */

22
23 public class RemoveItemTag extends ListReferrerTag {
24
25     public int doStartTag() throws JspTagException JavaDoc{
26         ListProvider list = getList();
27         list.remove();
28         return SKIP_BODY;
29     }
30
31
32 }
33
Popular Tags