Developing web applications

Learn about selecting tools for developing web applications.

Before you begin

Design a web application and the required components.

About this task

There are two basic approaches to selecting tools for developing web applications:
  • You can use one of the available integrated development environments (IDEs). IDE tools automatically generate significant parts of the servlet and JavaServer Pages (JSP) code, and Hypertext Markup Language (HTML) files. They also contain integrated tools for packaging and testing the web application components.
  • If you decide to develop web components without an IDE, you need at least an ASCII text editor. You can also use tools available in the Java™ SE Development Kit 6 and in this product to assemble, test, and deploy the Web application components.

The following steps support the second approach, development without an IDE.

Procedure

  1. If necessary, migrate any pre-existing code to the required version of the servlet and JSP specification.
  2. Write and compile the components of the web application.
    To access classes that were extended, compile your code using the -classpath option on the javac compiler. This option allows you to reference the j2ee.jar file in the product directory:
    • [z/OS][AIX Solaris HP-UX Linux Windows]<install_root>\dev\JavaEE
    • [IBM i]app_server_root/dev/JavaEE
    [Windows][z/OS]To compile that same servlet on the Windows NT version of WebSphere® Network Deployment, specify:
    
    javac -classpath D:\Program Files\WebSphere\DeploymentManager\dev\JavaEE\j2ee.jar MyServlet.java
    
    [IBM i]To compile that same servlet on WebSphere Application Server for i5/OS, Network Deployment, specify:
    
    javac -J-Djava.version=1.5 -classpath app_server_root/dev/JavaEE/j2ee.jar MyServlet.java 
    
    
  3. Optionally disable JavaServer Pages (JSP) runtime compilation, if necessary.

What to do next

Assemble the application components in one or more web modules.