ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/program/jspibmx.htm

66 lines
3.2 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>IBM extensions to JSP tags</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h4><a name="jspibmx"></a>IBM extensions to JSP tags</h4>
<p>WebSphere Application Server - Express supports IBM extensions and additions to the JSP specification.</p>
<ol>
<li>Review the supported specifications and create Java<sup>(TM)</sup> components.
<!-- <p>See <a href="wappres.htm">Web application resources</a> for links to coding specifications and examples.</p> -->
<p><strong>Note:</strong> Use of these tags are not recommended unless you are migrating your JSPs from WebSphere Application Server Version 3.5. Use of the IBM extension tags in your JSP files diminishes their potential to be ported to a non-WebSphere application server.</p>
<p>Extensions can be categorized as either:</p>
<ul>
<li><p><strong>Syntax for variable data</strong>
<br>Put variable fields in JSP files and have servlets and beans dynamically replace the variables with
values from a database when the JSP output is returned to the browser.</p></li>
<li><p><strong>Syntax for database access</strong>
<br>Add a database connection to a Web page and then use that connection to query or update the
database. You can provide the user ID and password for the database connection at request time, or you
can hard code the user ID and password within the JSP file.</p></li>
</ul>
</li>
<li>Use an integrated development environment (IDE) or text editor to develop or migrate code artifacts
that meet the JSP specifications.</li>
<li>Test the code artifacts.</li>
<li><strong>(Optional) </strong>Run a batch compilation on your JSP files if necessary. See <a href="jspbatch.htm">JSP batch compilation</a> for more information.</li>
</ol>
<p>See the following topics for more information about the IBM extensions and their syntax:</p>
<blockquote>
<p><strong><a href="jspcon.htm">&lt;tsx:dbconnect&gt;</a></strong>
<br>This tag specifies information that is needed to connect to a database.</p>
<p><strong><a href="jspidp.htm">&lt;tsx:userid&gt; and &lt;tsx:passwd&gt;</a></strong>
<br>Use these tags as variables for user ID and password input.</p>
<p><strong><a href="jspqry.htm">&lt;tsx:dbquery&gt;</a></strong>
<br>You can use this tag to query a database and return the results.</p>
<p><strong><a href="jspmod.htm">&lt;tsx:dbmodify&gt;</a></strong>
<br>This tag allows you to add records to a database.</p>
<p><strong><a href="jsprpt.htm">&lt;tsx:repeat&gt;</a></strong>
<br>You can use this tag to iterate through a the results set of a database query.</p>
<p><strong><a href="jspget.htm">&lt;tsx:getProperty&gt;</a></strong>
<br>This tag gets the value of a bean to display in the JSP file.</p>
</blockquote>
<p>Keep in mind that using the IBM extension tags in your JSP files diminishes their potential to be ported to a non-WebSphere application server.</p>
</body>
</html>