WAS v8.5 > Develop applications > Develop web applicationsDevelop web applications
Learn about selecting tools for developing web applications.
Design a web application and the required components.
There are two basic approaches to selecting tools for developing web applications:
- We can use one of the available integrated development environments (IDEs). IDE tools automatically generate significant parts of the servlet and 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. We 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.
- If necessary, migrate any pre-existing code to the required version of the servlet and JSP specification.
- 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:
- <install_root>\dev\JavaEE
For example, to compile a servlet for WebSphere Application Server on Windows, specify:
javac -classpath D:\Program Files\WebSphere\AppServer\dev\JavaEE\j2ee.jar MyServlet.java
- Optionally disable JSP runtime compilation, if necessary.
Assemble the application components in one or more web modules.
Subtopics
- JavaServer Faces
JavaServer Faces (JSF) is a user interface framework or API that eases the development of Java-based web applications.- JWL
JWL is an IBM JSF-based web widget library that integrates widgets from a number of sources. The IBM JSF-based web widget library is deprecated, however, we can obtain the latest version from Rational Application Developer version 6 to work with JSF 1.2.- Configure JavaServer Faces implementation
Use this task to specify which JavaServer Faces implementation to use. We can use Apache MyFaces 2.0 or the Sun Reference Implementation 1.2 of JSF, or our own implementation.- Develop servlets
- Develop JSP files
Learn about JSP files.- Develop JSF files
Learn about JSF files.- Define an extension for the registry filter
The registry filter specifies if an extensions is applicable to all registry instances or to specified instances.- CDI
Learn about Contexts and Dependency Injection (CDI).- Develop servlet applications using asyncrhonous request dispatcher
Related concepts:
Development and assembly tools
Web applications
Enterprise (Java EE) applications
Servlets
JSP
Class loaders
Related
Migrating web application components from WAS v5.x
Assemble web applications
Reference:
web.xml file
Default Application
JSP run time compilation settings
Custom property settings
Web applications: Resources for learning