Develop 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:
- Using 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 we decide to develop web components without an IDE, we 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.
Tasks
- 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 us to reference the j2ee.jar file in the product directory:
- <install_root>\dev\JavaEE
- (iSeries) app_server_root/dev/JavaEE
(Windows) (ZOS) To compile that same servlet on the Windows NT version of WebSphere Network Deployment, specify:
javac -classpath D:\WebSphere\DeploymentManager\dev\JavaEE\j2ee.jar MyServlet.java(iSeries) To compile that same servlet on WAS for i5/OS™, Network Deployment, specify:
javac -J-Djava.version=1.5 -classpath app_server_root/dev/JavaEE/j2ee.jar MyServlet.java- Optionally disable JavaServer Pages (JSP) runtime compilation, if necessary.
What to do next
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.- Develop servlets with extensions
Use this task to provide a summary of the WAS extensions we can use to develop servlets.- Develop JSP files
Learn how to use JavaServer Pages (JSP) files to create and maintain pages.- Develop JSF files
Learn about using JSF files to ease the development of Java-based web applications.- Define an extension for the registry filter
The registry filter specifies if an extensions is applicable to all registry instances or to specified instances.- Contexts and Dependency Injection (CDI)
Learn about Contexts and Dependency Injection (CDI) for the Java EE platform.- Develop RRD extensions
- Develop servlet applications using asyncrhonous request dispatcher
- Develop WebSocket applications
WebSocket 1.1 is enabled by default and builds on the 1.0 specification. WAS traditional uses the WebSocket protocol to enable applications to communicate using a full-duplex connection.- Develop Web 2.0 applications
Use Ajax proxy, Web messaging, and RPC adapter, which are deprecated features from the Web 2.0 and Mobile Toolkit, to deploy applications.
Related:
Development and assembly tools Web applications Enterprise (Java EE) applications Servlets JavaServer Pages Class loaders JavaServer Faces widget library (JWL) Configure for JavaServer Faces 2.2 Assembling web applications web.xml file Default Application JSP run time compilation settings Custom property settings