Operating Systems: i5/OS
Personalize the table of contents and search results
Develop Web applications
Design a Web application and the components that it needs.
For
general Web application design information, see "Resources for learning."
Overview
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 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 Software
Development Kit (SDK) 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
- 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:
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/lib/j2ee.jar MyServlet.java
- (Optional) Disable JavaServer Pages runtime compilation,
if necessary.
What to do next
Assemble the application
components in one or more Web modules.
}
JavaServer Faces
JavaServer Faces widget library (JWL)
Related concepts
Assembly tools
Web applications
Enterprise (J2EE) applications
Servlets
JavaServer Pages
Class loaders
Related Reference
web.xml file
Default Application
JSP run time compilation settings
Custom property settings
Web applications: Resources for learning
|