KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > simya > ldap > taglib > QueryTEI


1 package net.simya.ldap.taglib;
2
3 import javax.servlet.jsp.tagext.*;
4
5 public
6     class QueryTEI
7     extends TagExtraInfo
8 {
9     public VariableInfo[] getVariableInfo( TagData data )
10     {
11         //if user didn't provide id, variableinfo returns null.
12
if (data.getId() != null)
13         {
14             VariableInfo rec = new VariableInfo(
15                                     data.getId(),
16                                     "net.simya.ldap.beans.LdapSearchBean",
17                                     true,
18                                     VariableInfo.NESTED );
19             return new VariableInfo[] { rec };
20         }
21         else
22             return new VariableInfo[] { };
23         
24     }
25     
26     public boolean isValid( TagData data )
27     {
28         return true;
29     }
30 }
Popular Tags