1 |
| |
2 |
| |
3 |
| |
4 |
| |
5 |
| |
6 |
| |
7 |
| |
8 |
| |
9 |
| |
10 |
| |
11 |
| |
12 |
| |
13 |
| |
14 |
| |
15 |
| |
16 |
| package examples; |
17 |
| |
18 |
| import javax.servlet.jsp.*; |
19 |
| import javax.servlet.jsp.tagext.*; |
20 |
| |
21 |
| public abstract class ExampleTagBase extends BodyTagSupport { |
22 |
| |
23 |
0
| public void setParent(Tag parent) {
|
24 |
0
| this.parent = parent;
|
25 |
| } |
26 |
| |
27 |
0
| public void setBodyContent(BodyContent bodyOut) {
|
28 |
0
| this.bodyOut = bodyOut;
|
29 |
| } |
30 |
| |
31 |
0
| public void setPageContext(PageContext pageContext) {
|
32 |
0
| this.pageContext = pageContext;
|
33 |
| } |
34 |
| |
35 |
0
| public Tag getParent() {
|
36 |
0
| return this.parent;
|
37 |
| } |
38 |
| |
39 |
0
| public int doStartTag() throws JspException {
|
40 |
0
| return SKIP_BODY;
|
41 |
| } |
42 |
| |
43 |
0
| public int doEndTag() throws JspException {
|
44 |
0
| return EVAL_PAGE;
|
45 |
| } |
46 |
| |
47 |
| |
48 |
| |
49 |
| |
50 |
0
| public void doInitBody() throws JspException {
|
51 |
| } |
52 |
| |
53 |
0
| public int doAfterBody() throws JspException {
|
54 |
0
| return SKIP_BODY;
|
55 |
| } |
56 |
| |
57 |
0
| public void release() {
|
58 |
0
| bodyOut = null;
|
59 |
0
| pageContext = null;
|
60 |
0
| parent = null;
|
61 |
| } |
62 |
| |
63 |
| protected BodyContent bodyOut; |
64 |
| protected PageContext pageContext; |
65 |
| protected Tag parent; |
66 |
| } |