KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > taglib > tiles > GetTag


1 /*
2  * $Id: GetTag.java 54929 2004-10-16 16:38:42Z germuska $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19
20 package org.apache.struts.taglib.tiles;
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 }
54
Popular Tags