KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > dbtags > connection > ConnectionTEI


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

17
18 package org.apache.taglibs.dbtags.connection;
19
20 import javax.servlet.jsp.tagext.TagData JavaDoc;
21 import javax.servlet.jsp.tagext.TagExtraInfo JavaDoc;
22 import javax.servlet.jsp.tagext.VariableInfo JavaDoc;
23
24 /**
25  * TagExtraInfo for the connection tag. This
26  * TagExtraInfo specifies that the ConnectionTag
27  * assigns a java.sql.Connection object to the
28  * "id" attribute at the end tag.
29  *
30  * @author Morgan Delagrange
31  * @see ConnectionTag
32  */

33 public class ConnectionTEI extends TagExtraInfo JavaDoc {
34
35   public final VariableInfo JavaDoc[] getVariableInfo(TagData JavaDoc data)
36   {
37     return new VariableInfo JavaDoc[]
38     {
39       new VariableInfo JavaDoc(
40                       data.getAttributeString("id"),
41                       "java.sql.Connection",
42                       true,
43                       VariableInfo.AT_END
44                       ),
45     };
46   }
47 }
48
49
Popular Tags