Sample Code
-----------------

Tag Library
--------------

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
    "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>

<taglib>
         <tlibversion>1.0</tlibversion>
        <jspversion>1.1</jspversion>
        <shortname>ymca</shortname>
        <urn></urn>
        <info>Tag Library Test</info>

         <tag>
                 <name>listbox</name>
                 <tagclass>ymtaglib.YMListBox</tagclass>
                 <bodycontent>JSP</bodycontent>
                 <info>Generates the HTML Select Box Accepts Vector of ListBox
Object</info>

                 <attribute>
                     <name>name</name>
                     <requird>true</requird>
                     <rtexprvalue>true</rtexprvalue>
                     <type>"java.lang.String"</type>
                 </attribute>

                 <attribute>
                     <name>data</name>
                     <requird>true</requird>
                     <rtexprvalue>true</rtexprvalue>
                     <type>"java.util.Vector"</type>
                 </attribute>
                 <attribute>
                     <name>type</name>
                     <requird>false</requird>
                     <rtexprvalue>true</rtexprvalue>
                     <type>"java.lang.String"</type>
                 </attribute>
                 <attribute>
                     <name>size</name>
                     <requird>false</requird>
                     <rtexprvalue>true</rtexprvalue>
                     <type>"java.lang.String"</type>
                 </attribute>
                 <attribute>
                     <name>eventhandler</name>
                     <requird>false</requird>
                     <rtexprvalue>true</rtexprvalue>
                     <type>"java.lang.String"</type>
                 </attribute>
                 <attribute>
                     <name>defaultselected</name>
                     <requird>false</requird>
                     <rtexprvalue>true</rtexprvalue>
                     <type>"java.lang.String"</type>
                 </attribute>


         </tag>
</taglib>



Jsp
----
<%@ taglib uri="/tld/ymcatag.tld" prefix="ymca" %>

<ymca:listbox name="TxtMainLocation"
data="<%=YmcaBeanId.getMainLocationCodes()%>"  />


Directory Strcture
----------------------
Use following direcytory str.

web
     -tld
          ymcatag.tld
     -package Name
         . jsp


Try with these and believe me this works. If u have not changed much
configuration parameters( like rootdir and new app. server etc.)


Thanks and Regards
Raj



-------------------------------------------------------------------

The contents of this e-mail are confidential to the ordinary user
of the e-mail address to which it was addressed and may also be
privileged. If you are not the addressee of this e-mail you should
not copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever. If you have received this e-mail in error
please notify us by telephone or e-mail the sender by replying to
this message, and then delete this e-mail and other copies of it
from your computer system. Thank you.

We reserve the right to monitor all e-mail communications through
our network.

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to