1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.struts.tiles.taglib;
21
22 /***
23 * This is the tag handler for <tiles:get>, which gets
24 * content from the request scope and either includes the content or prints
25 * it, depending upon the value of the content's <code>direct</code> attribute.
26 *
27 * This tag is intended to be compatible with the same tag from Templates (David Geary).
28 * Implementation extends InsertTag for facility (no so well).
29 * The only difference is the default value of attribute 'ignore', which is <code>true</code>
30 * for this tag (default behavior of David Geary's templates).
31 */
32 public class GetTag extends InsertTag {
33
34
35 /***
36 * Constructor.
37 * Set default value for 'isErrorIgnored' to <code>true</code>.
38 */
39 public GetTag() {
40 isErrorIgnored = true;
41 }
42
43 /***
44 * Release all allocated resources.
45 */
46 public void release() {
47
48 super.release();
49 isErrorIgnored = true;
50 }
51
52
53 }