1 53 54 package com.Yasna.forum.tags; 55 56 import javax.servlet.jsp.tagext.*; 57 import com.Yasna.forum.*; 58 import javax.servlet.jsp.*; 59 import java.io.*; 60 61 65 public class IsPrivateMessageTag extends TagSupport { 66 67 public int doStartTag() throws JspException { 68 try { 69 if (getMessageTag().isPrivate()) return EVAL_BODY_INCLUDE; 70 } catch(Exception e) { 71 } 72 return SKIP_BODY; 73 } 74 75 79 private MessageTag getMessageTag() { 80 MessageTag mt = null; 81 try { 82 mt = (MessageTag)this.findAncestorWithClass(this, 83 Class.forName("com.Yasna.forum.tags.MessageTag")); 84 } catch(Exception e) { 85 } 86 return mt; 87 } 88 89 } | Popular Tags |