Class of the Month: JSP Tag Libraries and the TagSupport Class Hawaii

JSP Tag libraries provide a convenient framework for developing Web applications. They allow you to wrap custom functionality inside XML-like tags.

Local Companies

City and County Offices Human Resources Department
(808) 523-4121
650 S King St
Honolulu, HI
Computer 1 Associates Inc
(808) 524-6700
1188 Bishop St
Honolulu, HI
Laser Barcode Solutions
(808) 591-0031
1314 S King St Suite 424
Honolulu, HI
Human Touch Software Co
(808) 924-3930
2222 Kalakaua Ave
Honolulu, HI
Hawaii Healthcare Technologies, LLC
808-626-5545
EMR and PM Software Solutions
Honolulu, HI
Century Computers Inc
(808) 585-0444
500 Ala Moana Blvd
Honolulu, HI
Compusultants Inc
(808) 545-1216
1188 Bishop St
Honolulu, HI
Computer Associates International Inc
(808) 585-0057
1132 Bishop St
Honolulu, HI
Success Solutions LLC
(808) 946-0005
1311 Kapiolani Blvd
Honolulu, HI
Analyzer USA Inc
(808) 922-4620
2155 Kalakaua Ave
Honolulu, HI

provided by: 
Originally published at Internet.com


JSP Tag libraries provide a convenient framework for developing Web applications. They allow you to wrap custom functionality inside XML-like tags. By removing the "details" from the JSP page, it becomes easier to read. At the end of the day, however, JSP pages along with JavaBeans and tag libraries, get translated into servlets. So at runtime, it is the servlet that does the work.

Piroz Mohseni

With tag libraries, you can declare a custom tag and then associate some code with it and control when the code is invoked in relation to the opening or closing tags. The key class to make this work is TagSupport, which is part of the javax.servlet.jsp.tagext package. Note that this is not standard Java API. Most likely it will ship with your JSP/servlet engine, like Apache Tomcat.

A JSP page (regardless of whether it contains tag libraries or not) is processed from top to bottom. In a manner similar to the SAX API, various events are associated with this reading process. These "events" correspond to when the reader encounters a tag that is part of the tag library defined for the page. When the tag is first encountered, the doStartTag() method of TagSupport is called. By inheriting from TagSupport and overriding the doStartTag(), you can associate custom code and functionality to that event. As the reading process continues, it will eventually encounter the closing tag for the element and at that time it invokes the doEngTag() method...

Read article at Internet.com site

Featured Local Company

Century Computers Inc

(808) 585-0444
500 Ala Moana Blvd
Honolulu, HI

Related Local Events
NPA 2010
Dates: 2/7/2010 - 2/9/2010
Location: Grand Hyatt Kauai Resort & Spa
Koloa, HI
View Details

GLOBECOM 2009 - 2009 IEEE Global Telecommunications Conference
Dates: 11/30/2009 - 12/4/2009
Location: Hilton Hawaiian Village
Honolulu, HI
View Details

Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML