WebLogic Server 6.0.0 Code Examples, BEA Systems, Inc.

Package examples.jsp.tagext

These examples show you how to define custom JSP tags that may be used in your JSP pages.

See:
          Description

JSP Tag Extension examples Summary
counter This example implements two simple empty-body Tags to increment and display a counter in a JSP page.
quote The examples in this package illustrate how to use JSP tag attributes and how to define a body-tag to display a Java source code file as an HTML page.
session The JSP page lists the contents of the HTTP session and allows you to add new name/value pairs or remove existing ones, reflecting the fundamental behavior of a shopping cart. This example demonstrates how to use a body-tag to iterate over the contents of its body. The tag uses the ExtraTagInfo class to define new scripting variables that are available to the tag body content. Each time the body is evaluated, the value of the scripting variable is different, resulting in a different result output of the body evaluation.
sql The JSP page opens a connection to the JDBC connection pool "demoPool" defined in the WebLogic Server Administration Console, makes a query on the "emp" database, iterates through the results, and displays them in a table. This example illustrates a set of nested tags that cooperate with one another. The <sql:query> tag uses the id attribute to configure the name of a nested scripting variable that is made available to its body. This is used by the <sql:results> tag, which iterates over a named result set generated from the query.
 

Package jsp.tagext Description

These examples show you how to define custom JSP tags that may be used in your JSP pages. Read each example in turn, since each explanation will assume knowledge you have gained from the previous examples, and that you have understood the JSP and HTTP servlet examples. Each example is contained in its own directory.

There's more...

Read more about:


Documentation is available at
http://e-docs.bea.com/wls/docs60/

Copyright © 2000 BEA Systems, Inc. All rights reserved.