Part 2nd: Build a Java based business application
Before you start
This tutorial is intended for aix®5.3 developers who want to quickly integrate PHP and java™ in their own web application development. Readers should have basic Java programming capabilities and an understanding of the basic web development environment.
About this series
PHP is a very good web development language, and Java technology is very popular in business application development. Therefore, in order to fully utilize the advantages of each language on the AIX Version 5.3 operating system, PHP Java Bridge is specifically developed. This series of articles provides AIX 5.3 developers with an overview of how to integrate PHP and Java technologies into their Web application development.
To illustrate this, you will build a simple survey application based on the typical development process, including:
Developing a major Java application
Exposing Java applications as Java-based Web applications through the servlet
Adding support for storing information in a database
Exposing the original application as a Web service and providing the PHP interface for the application
Re-developing the PHP interface with a dedicated PHP Java bridge
This series of articles consists of six parts:
Part 1th describes an application and sets the environment for building Java applications and for performing Java-based Web applications using Tomcat.
The 2nd part introduces the main application code and the development of a simple Java servlet to provide a web interface for information.
Part 3rd connects the core application to the db2® database to store the questions and answers to the questionnaire survey.
Part 4th transforms the original application so that it can be accessed as a Web service, and it provides the basis for the PHP interface.
The 5th part uses PHP Java Bridge to build the PHP interface for Java applications.
The 6th part is to recreate the application to use PHP Java Bridge instead of the Web service interface.
About this tutorial
In this tutorial, you will build a basic business application based on the survey application that is studied in part 1th of this series of articles. Once you have a stand-alone version of your application, you can explore how to use the Java Servlet technology to build and develop a web-based alternative application.
This tutorial describes the following points:
Build a basic Questionnaire survey application
Building a simple web Servlet
Use the servlet to build an interface for your survey application
How to deploy this servlet to your Web application server
You'll start by building a survey application, including providing base classes and using problem-specific elements to extend this class. This complete application forms the basis for the remaining examples of the following tutorials in this series of articles.