This is an excerpt from a JSP file using a taglib.
The call to the taglib should be in the head section:
<%@ taglib uri="/Taglib/presentation-taglib.tld" prefix="presentation" %>
Creating a variable within the page that takes a variable from the request
URL.
string yourmajor = request.getParameter("major");
Then in the body, the calls to specific tags within the tag lib look like
this:
<td width="90%"><presentation:classList
major='<%=yourmajor%>'></presentation:classList></td>
presentation is the name to identify which taglibrary.
classList is the name of the tag.
major is the name of a variable that the tag requires, which is then passed
to the java class, and major is equal to the page variable yourmajor, parsed
from the URL.
Hope this helps,
Margaret
-----Original Message-----
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 12:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Simple custom tag example or tutorial
Go to http://jakarta.apache.org/taglibs/ , find a taglib that looks
interesting, then follow the installation instructions and try it out.
There's not much to it.
-----Original Message-----
From: Pantarotto, Sio [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 11:37 AM
To: [EMAIL PROTECTED]
Subject: Simple custom tag example or tutorial
Can someone provide me a simple example of using custom tag in jsp page.
Please it needs to be really simple. The ones I am finding are a bit
confusing.
Thanks
Sio
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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