Hi,

    I don't know if  what I do is correct but
- I've created a TEI to add a scripting variable with type a String Object, an
other one that adds a variable of type a Date Object, for ex, and again an other
one that add a sripting variable of type my own objetc
- Then I associate one of these TEI with my tags depending of what the tags do. For
ex, I have a  Iterate Tag class which is associated with an Object TEI to create
JSP iterate tag. But, in the taglib.tld, I also associated the Iterate Tag class
with the String TEI to create the IterateOnString Tag and again this Iterate Tag
class with the Date TEI to IterateOnDates JSP tag.

Here is the code of the metho getVariableInfo(TagDate d) of the StringTEI ... It
just creates a NESTED variable referenced by the id parameter of the associated
tag.

 public VariableInfo[] getVariableInfo(TagData data) {
 String idValue  = data.getId();

 if ( idValue == null)
 {
     throw new Error("TagLibrary inconsistency");
 }

 //Create a String Object with identifier 'idValue' (given by id) with Scope =
NESTED
 VariableInfo info = new VariableInfo(idValue,"String",true,VariableInfo.NESTED);

 VariableInfo[] back = { info } ;
 return back;
    }

I don't know if this answer your question or if this is the good way to use TEI ...
but it may help you !
Regards
Veronique
"Holmes III, William S" a �crit :

> Hi,
>
>  Does anyone know of a good example using TagExtraInfo to declare scripting
> variables?
> The only example I've found so far is in the Orion Tag Extensions tutorial.
>
> Thanks,
>  Bill
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to