|  |  developerWorks > AIX and UNIX >
Develop with Java and PHP technology on AIX Version 5.3, Part 2: Building the Java business application |  |
|
 | Level: Intermediate Martin Brown (mc@mcslp.com), Freelance Writer, Consultant Doug Monroe (monroe@sqnt.com), System Administration Consultant, DMA Inc.
05 Jun 2007 It is possible to develop applications that employ both Java™ and PHP
technology. You can use Java for the core logic (or redeploy an existing Java-based
application), while gaining the benefits of PHP as a Web-based interface platform.
In this tutorial, the second part of a six-part
series, create a simple Java
business application and then deploy it as a servlet on the Apache Tomcat
application server on a System p™ system with the IBM AIX® Version 5.3 operating
system.
In this tutorial
- Developing the business application
- The survey application
- Building Java applications on AIX
- The SurveyQuestion class
- The SurveyQuestionText class
- The SurveyQuestionRadio class
- Exposing other question types
- Building a survey
- Java servlets
- Describing a servlet
- The init() method
- The doGet() method
- Outputting an HTML Form fields
- The doPost() method
- Deploying Java apps as servlets
- Compiling the servlet
- Deploying our servlets
- Testing the servlet
Objectives
To create a simple Java™ business application and deploy it as a
servlet.
Prerequisites
This tutorial is for AIX 5.3 developers interested in getting up to speed in
integrating both PHP and Java in their Web application development. Readers
should have basic Java programming knowledge and basic Web development
environment knowledge.
System requirements
You need the following software to follow along with this tutorial:
- IBM pSeries® server (This code was tested using AIX Version 5.3.)
-
Apache Tomcat system
-
The Eclipse IDE
-
The Java 5 64-bit SDK (You will need to
register to download this package, but registration is free.)
- The Mozilla Web browser for AIX
Duration
2 hours
Formats html, pdf
|  | |  |
|