+

Search Tips   |   Advanced Search

Task overview: Develop and deploy web applications

Use this document to learn how to develop and deploy Web applications

A developer creates the files comprising a web application, and then assembles the web application components into a web module. Next, the deployer (typically the developer in a unit-testing environment or the administrator in a production environment) installs the web application on the server.


Tasks

  1. Optional: Migrate existing web applications to run in the new version of the product.
  2. Design the web application and develop its code artifacts: Servlets, JavaServer Pages (JSP) files, and static files, as for example, images and Hyper Text Markup Language (HTML) files. See the Web applications: Resources for learning topic for links to design documentation.

    JavaServer Pages programming tips:

    • Disable session state of JavaServer Pages files using <%@ page language="java" contentType="text/html" session="false" %> instead of <%@ page language="java" contentType="text/html" %>

    • Replace setProperties calls in your JavaServer Pages files with direct calls to the appropriate setxxx methods.

  3. Develop the Web application, using WAS extensions to enhance its functionality.
  4. Assemble the web application into a web module using an assembly tool. Web module assembly properties might include the ability to:

    • Configure servlet page lists.

    • Configure servlet filters.
    • Serve servlets by class name.

      Serving servlets by name or class name is triggered by setting the serveServletsbyclassnameEnabled property within IBM extensions. Use the invoker.patterns attribute to specify the patterns that trigger invocation of the server component and allows the serving of servlets by name or by class name. This value is a list separated by either a space, colon, or semicolon.

    • Enable file serving.

      In file serving, web applications can serve static file types, such as HTML. File-serving attributes are used by the servlet that implements file-serving behavior.

  5. Deploy the web module or application module containing the web application.

    Following deployment, we might find it handy to use the tool that enables batch compiling of the JSP files for quicker initial response times.

  6. Optional: Troubleshoot the web application.

  7. Optional: Modify the default web container configuration in the application server in which we deployed the web module or application module containing the web application.

  8. Optional: Manage the deployed web application.


Related:

  • Web applications
  • Web modules
  • Enterprise (Java EE) applications
  • Servlets
  • JavaServer Pages
  • (iSeries) User profiles and authorities
  • Developing servlets with extensions
  • Configure JSP engine parameters
  • Developing web applications
  • Modify the default web container configuration
  • Assembling web applications
  • Deploy web applications with remote web or portlet applications using RRD
  • Secure applications during assembly and deployment
  • (iSeries) Backing up and recovering servlets
  • (iSeries) Backing up and recovering JavaServer Pages files
  • Define an extension for the registry filter
  • Tune URL invocation cache
  • Developing servlet applications using asynchronous request dispatcher
  • web.xml file
  • Default Application
  • Web application deployment troubleshooting tips
  • JavaServer Pages troubleshooting tips
  • Web applications: Resources for learning