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.*; 115 import com.Yasna.forum.tags.*; 116 117 141 142 public class MoveThreadTag extends TagSupport 143 { 144 private YazdRequest jr = null; 145 146 151 public final int doStartTag() throws JspException 152 { 153 ThreadTag tt = null; 155 try { 156 tt = (ThreadTag)this.findAncestorWithClass(this, 157 Class.forName("com.Yasna.forum.tags.ThreadTag")); 158 } catch(Exception e) { 159 } 160 161 if( tt == null ) { 163 throw new JspException("Yazd move_thread tag must be nested inside a thread tag"); 164 } 165 166 if( !tt.moveThread() ) 167 return SKIP_BODY; 168 169 return EVAL_BODY_INCLUDE; 170 } 171 172 } 173 | Popular Tags |