1,25 → 1,25 |
package ak.hostadmiral.core.taglib.list; |
|
import javax.servlet.jsp.JspException; |
import javax.servlet.jsp.tagext.Tag; |
import javax.servlet.jsp.tagext.TagSupport; |
|
public abstract class IterateSubtagBase |
extends TagSupport |
{ |
protected PageIterateTag parent; |
|
protected void findParent() |
throws JspException |
{ |
Tag p = getParent(); |
|
while(p != null && !(p instanceof PageIterateTag)) |
p = p.getParent(); |
|
if(p == null) |
throw new JspException("This tag must be inside PageIterateTag"); |
|
parent = (PageIterateTag)p; |
} |
} |
|
import javax.servlet.jsp.JspException; |
import javax.servlet.jsp.tagext.Tag; |
import javax.servlet.jsp.tagext.TagSupport; |
|
public abstract class IterateSubtagBase |
extends TagSupport |
{ |
protected PageIterateTag parent; |
|
protected void findParent() |
throws JspException |
{ |
Tag p = getParent(); |
|
while(p != null && !(p instanceof PageIterateTag)) |
p = p.getParent(); |
|
if(p == null) |
throw new JspException("This tag must be inside PageIterateTag"); |
|
parent = (PageIterateTag)p; |
} |
} |