Develop JavaServer Pages files with WebSphere extensions

 

Overview

Several IBM WebSphere extensions are provided for enhancing your JavaServer Pages (JSP) files. This task provides a summary of the extensions that you can utilize.

  1. Review the supported specifications.

    Create Java components, referring to the JSP specifications from Sun Microsystems.

    See Resources for learning for links to coding specifications and examples.

    WebSphere Application Server V3.5 added IBM extensions to the base Application Programming Interfaces (APIs). Since the JavaServer Pages (JSP) 1.1 and JSP 1.2 Specifications are backward compatible to the JSP 1.0 Specifications, you can invoke the APIs with the IBM extensions without modification.

    The extensions belong to these categories:

    Syntax for variable data

    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.

    Syntax for database access

    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.

  2. Use your favorite integrated development environment (IDE), or a text editor, to develop or migrate code artifacts that meet the specifications.

  3. Test the code artifacts.

  4. (Optional) Batch compile your JSP files if necessary.

Related concepts
JavaServer Pages files
Tag libraries
Related tasks
Migrating Web application components
Related reference
tsx:dbconnect tag JavaServer Pages syntax
dbquery tag JavaServer Pages syntax
dbmodify tag JavaServer Pages syntax
tsx:getProperty tag JavaServer Pages syntax and examples
tsx:userid and tsx:passwd tag JavaServer Pages syntax
tsx:repeat tag JavaServer Pages syntax
Example: Combining tsx:repeat and tsx:getProperty JavaServer Pages tags
Example: tsx:dbmodify tag syntax
Example: Using tsx:repeat JavaServer Pages tag to iterate over a results set
JspBatchCompiler tool
Web applications: Resources for learning