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

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

Local Companies

Practice Management Solutions Inc
414-352-8160
7571 N Teutonia Ave
Milwaukee, WI
KMSpecialties
414-751-4009
7434-3 Halverson Rd
Three Lakes, WI
Madison Software Inc
608-833-5410
6666 Odana Rd
Madison, WI
Gbl Software LLC
414-760-9029
6417 W Hustis St
Milwaukee, WI
HarrisData
800-225-0585
13555 Bishops Court
Brookfield, WI
codeeo
608 305 1060
1360 Regent Street #155
Madison, WI
Electroniclaim
262-240-9700
11357 N. Port Washington Rd
Mequon, WI
Gates Business Solutions
608-661-0810
2810 CrossRoads DR
Madison, WI
Image Processing Software Inc
608-233-5033
6409 Appalachian Way
Madison, WI
Access Technologies International
414-289-3121
840 N Old World 3rd St
Milwaukee, WI

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

codeeo

608 305 1060
1360 Regent Street #155
Madison, WI

Related Articles
- Some Insight Into Inner Classes in Java, Part 1 Wisconsin
Inner classes can simplify some design by enriching the classes in which they are defined. They might add a "facet" to the behavior of an enclosing class, thus enriching its interactions with other classes. They can also be used as access control points where the inner class can be used to provide controlled access to some resource or to define isolated callbacks or to other beneficial purposes.
- Class of the Month: Control Event Executions with the New Timer Class Wisconsin
- Use the BodyTagSupport Class to Add More Flexibility to JSP Pages Wisconsin
- SJCP Exam Preparation: Top-level and Inner Classes Wisconsin
- Class of the Month: Making HTTP Connections Wisconsin
- Class of the Month: The Reflection API Wisconsin
- Class of the Month: JDK 1.4 Supports Regular Expressions Wisconsin
- Application Logs and the Logger Class Wisconsin
- Tacit Records: The Java Class Loader Wisconsin
- Class of the Month: GregorianCalendar Wisconsin
Regional Articles
- Class of the Month: JSP Tag Libraries and the TagSupport Class Appleton WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Baraboo WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Beaver Dam WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Beloit WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Brookfield WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Burlington WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Cedarburg WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Chippewa Falls WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Cudahy WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class De Pere WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Delavan WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Eau Claire WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Elkhorn WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Fond Du Lac WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Fort Atkinson WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Franklin WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Green Bay WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Hartland WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Janesville WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Kaukauna WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Kenosha WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class La Crosse WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Lake Geneva WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Madison WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Manitowoc WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Marinette WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Marshfield WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Menasha WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Menomonee Falls WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Menomonie WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Merrill WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Middleton WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Milwaukee WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Mosinee WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Mukwonago WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Muskego WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Neenah WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class New Berlin WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Oak Creek WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Oconomowoc WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Onalaska WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Oshkosh WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Pewaukee WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Racine WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Rhinelander WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Rice Lake WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class River Falls WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Schofield WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Shawano WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Sheboygan WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class South Milwaukee WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Stevens Point WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Sturgeon Bay WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Sun Prairie WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Superior WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Thiensville WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Two Rivers WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Watertown WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Waukesha WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Waupaca WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Wausau WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class West Bend WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Whitewater WI
- Class of the Month: JSP Tag Libraries and the TagSupport Class Wisconsin Rapids WI

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