KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > taglib > nested > logic > NestedIterateTei


1 /*
2  * $Id: NestedIterateTei.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 package org.apache.struts.taglib.nested.logic;
19
20 import javax.servlet.jsp.tagext.TagData JavaDoc;
21 import javax.servlet.jsp.tagext.VariableInfo JavaDoc;
22
23 import org.apache.struts.taglib.logic.IterateTei;
24
25 /**
26  * NestedIterateTei
27  * Extending the original tag's tei class, so that we can make the "id"
28  * attribute optional, so that those who want to script can add it if they need
29  * it otherwise we can maintain the nice lean tag markup.
30  *
31  * TODO - Look at deleting this class. Potentially a pointless existance now
32  * that the super class is towing the line. Left alone because it's not
33  * hurting anything as-is.
34  * Note: When done, it requires pointing the tei reference in the
35  * struts-nested.tld to org.apache.struts.taglib.logic.IterateTei
36  *
37  *
38  * @since Struts 1.1
39  * @version $Rev: 54929 $ $Date: 2004-10-16 17:38:42 +0100 (Sat, 16 Oct 2004) $
40  */

41
42 public class NestedIterateTei extends IterateTei {
43
44   /**
45    * Return information about the scripting variables to be created.
46    */

47   public VariableInfo JavaDoc[] getVariableInfo(TagData JavaDoc data) {
48     /* It just lets the result through. */
49     return super.getVariableInfo(data);
50   }
51 }
52
Popular Tags