JSP 2.0: The New Deal, Part 4
In this final part of the "JSP 2.0: The New Deal" series, we look at two new features that make it much easier to develop custom tag libraries: tag files and the new simplified tag-handler Java API.
Tutorial Details:
Developing Custom Actions as JSP Tag Files
JSP is intended to make it possible for people who are not Java gurus to write pages with dynamic content. Reusing a piece of dynamic, complex content between pages has been a bit of a pain until now. Say that you want to put a quick poll on a number of pages, with the question and answers picked up from variables. Prior to JSP 2.0, you had three options. You could copy and paste the poll form to every page where you wanted it. A better choice was to write a separate JSP page that generates the poll form, and include it in other pages with the or actions, but you could only pass it input parameters of type String, not a bean or a Map holding the answers. for instance. The third choice was to implement a custom action as a Java tag handler class, but then you'd need to know Java.
JSP 2.0 adds a fourth option: namely, developing a custom action as a tag file. A tag file is a plain text file where you use JSP elements for all dynamic parts, just as in a regular JSP page. It has the same purpose as a Java tag handler: to provide the logic for a custom action. The main differences between a tag file and a JSP page are that a tag file has a .tag filename extension, uses a tag directive instead of a page directive, and lets you declare input and output with a few new directives that are only valid in tag files.
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: JSP 2.0: The New Deal, Part 4
View Tutorial: JSP 2.0: The New Deal, Part 4
Related
Tutorials:
Understanding JavaServer Pages Model 2
architecture - JavaWorld December
1999
Understanding JavaServer Pages Model 2
architecture - JavaWorld December
1999 |
Advanced form processing using JSP
This article examines the processing of a user registration form using JSP and JavaBeans while implementing the Memento design pattern. |
JNDI overview,
Part 4: the Doc-u-Matic, a JNDI application - JavaWorld March 2000
JNDI overview,
Part 4: the Doc-u-Matic, a JNDI application - JavaWorld March 2000 |
Process JSPs effectively with JavaBeans
This articles shows your how you can process JSPs effectively with JavaBeans |
An open alternative to JSP - The faults of JSP So what's wrong with JSP?
How the template-based, open source API FreeMarker trumps JSP |
Jato: The new kid on the open source block, Part 3 - JavaWorld May
2001
Jato: The new kid on the open source block, Part 3 - JavaWorld May
2001 |
Superior app management with JMX - JavaWorld June
Integrate JMX, a reusable configuration framework, with your JSPs |
Personalize your Website with skins - JavaWorld June
2001
Personalize your Website with skins - JavaWorld June
2001 |
JSP best practices
Follow these tips for reusable and easily maintainable JavaServer Pages |
JSP Standard Tag Library eases Webpage
development
JSP Standard Tag Library eases Webpage
development |
Customize
SwingWorker to improve Swing GUIs
Customize
SwingWorker to improve Swing GUIs |
Introduction to JavaServer Faces
This article is meant to acquaint the reader with JavaServer Faces, commonly known as JSF. JSF technology simplifies building the user interface for web applications. It does this by providing a higher-level framework for working with your web app, repres |
JSP 2.0: The New Deal, Part 3
JSP 2.0: The New Deal, Part 3
More Flexible JSP Document Format Rules
The JSP specification supports two types of JSP pages: regular JSP pages containing any type of text or markup, and JSP Documents, which are well-formed XML documents; i.e., docum |
JSP 2.0: The New Deal, Part 4
JSP 2.0: The New Deal, Part 4
In this final part of the "JSP 2.0: The New Deal" series, we look at two new features that make it much easier to develop custom tag libraries: tag files and the new simplified tag-handler Java API. |
JSP (JavaServer Pages) is a standard for combining Java and HTML to provide dynamic content in web pages.
With JSP, you embed Java code in HTML using special JSP tags similar to HTML tags. You install the JSP page, which has a .jsp extension, into the WebLogic Server document root, just as you would a static HTML page. When WebLogic Server serves a JSP page.. |
JSPTags.com offers JSP developers a directory of resources.
JSPTags.com offers JSP developers a directory of resources related to JavaServer Pages, Servlets and Java. As the name JSPTags.com implies, special interest is given to JSP Tag Libraries. Many developers are working with and designing new JSP Tag Librarie |
This tutorial shows how to Creating Custom JSP Tag Libraries
JSP 1.1 introduced an extremely valuable new capability: the ability to define you own JSP tags. You Define how the tag, its attributes, and its body are interpreted, then group your tags into collections called tag libraries that can be used in any numbe |
Reuse Tiles and Simplify UI
JavaServer Pages (JSP) technology supports application object reuse through includes, which allow other files (including other JSPs) to be sourced into a JSP file either at compile time or dynamically at application runtime. This is great for abstracting |

JSP Hosting |
Introduction to JSP tags JSP Directives
Introduction to JSP tags JSP Directives
INTRODUCTION TO JSP TAGS
I n this lesson we will learn about the various tags available in JSP with suitable examples. In JSP tags can be devided into 4 different types. These are:
Directives
In the |
|
|
|