|
|
 More Subcategories Available
| Tags [+] Favor-It | |
| |
 |
| | Sort By:
|
Tags are reusable code libraries and allow easier separation of HTML and Java code. This tutorial first introduces JSP custom tags and then moves forward to build a simple JSP tag. Every step has been explained in detail. Online demo available. Author: Faisal Khan Code: JSP 1.1 |
JSP Tutorial
JSP Tags
Another important syntax element of JSP are tags. JSP tags do not use <%, but just the < character. A JSP tag is somewhat like an HTML tag. JSP tags can have a "start tag", a "tag body" and an "end tag". Author: jsptut.com Code: JSP 2.0 |
We have been fully qualifying the java.util.Date in the examples in the previous sections. Perhaps you wondered why we don't just import java.util.*; It is possible to use "import" statements in JSPs, but the syntax is a little different from normal Java Author: JSP Tutorial Code: JSP 1.2 |
|  | |
Another important syntax element of JSP are tags. JSP tags do not use <%, but just the < character. A JSP tag is somewhat like an HTML tag. JSP tags can have a "start tag", a "tag body" and an "end tag". Author: JSP Tutorial Code: JSP 1.2 |
The BodyTag interface extends Tag by defining additional methods that let a Tag handler access its body. The interface provides two new methods. Author: java.sun.com Code: JSP 1.2 |
The Tag interface defines the basic protocol between a Tag handler and JSP page implementation class. It defines the life cycle and the methods to be invoked at start and end tag.
Author: java.sun.com Code: JSP 1.2 |
The < jsp:include > tag lets you pass parameters to the include file—a useful capability if your application takes user input.
Author: unknown Code: JSP 1.2 |
|  | |
You can use the < jsp:include > tag to replace blocks of JSP code in your HTML. For example, suppose you have a page called mathprobs.jsp that contains the following mix of HTML and JSP code... Author: unknown Code: JSP 1.2 |
Brett McLaughlin continues his JSP best practices series by extending the custom time-stamp tag (lastModified) with an attribute that lets page authors choose their own time-stamp format. |
Icon Key >
 - Recently Updated
 - Showcase Listing
|