1 53 54 106 107 package com.Yasna.forum.tags; 108 109 import java.io.*; 110 import javax.servlet.*; 111 import javax.servlet.jsp.*; 112 import javax.servlet.jsp.tagext.*; 113 import javax.servlet.http.*; 114 import com.Yasna.forum.tags.*; 115 116 134 public class RotateSelectionTag extends TagSupport 135 { 136 141 public final int doStartTag() throws JspException 142 { 143 RotateTag rt = null; 145 try { 146 rt = (RotateTag)this.findAncestorWithClass(this, 147 Class.forName("com.Yasna.forum.tags.RotateTag")); 148 } catch(Exception e) { 149 } 150 151 if( rt == null ) 152 throw new JspException("Jive rotate_selection tag could not find parent rotate tag."); 153 154 if( rt.myTurn() ) 156 return EVAL_BODY_INCLUDE; 157 return SKIP_BODY; 158 } 159 160 } 161 | Popular Tags |