1 10 package org.mmbase.applications.community.taglib; 11 12 import javax.servlet.jsp.JspTagException ; 13 14 import org.mmbase.bridge.Node; 15 import org.mmbase.bridge.Module; 16 17 import org.mmbase.bridge.jsp.taglib.NodeTag; 18 19 27 28 public class DeleteTag extends NodeTag { 29 30 public void setMessage(String msg) throws JspTagException { 31 setNumber(msg); 32 } 33 34 public int doEndTag() throws JspTagException { 35 Module community=getCloudContext().getModule("communityprc"); 36 if (community==null) 37 throw new JspTagException ("Community module not available."); 38 Node node=getNodeVar(); 39 community.getInfo("MESSAGE-"+node.getNumber()+"-DEL",pageContext.getRequest(),pageContext.getResponse()); 40 return super.doEndTag(); 41 } 42 } 43 | Popular Tags |