PhoneBook Using Struts
This application demonstrates how to use Struts 1.1 to develope a simple Web Application.
It is used to do the following:
- Add a new phone entry
- Query existing phone entries either based on person name or phone no.
The following are the steps to install this application in your system :
- Make sure you have installed struts 1.1 into your system.
- Download PhoneBook.ZIP and unzip it into webapps directory of
Tomcat installation directory.
- Make sure you include Oracle driver classes in the classpath of Tomcat - use setClassPath.Bat file for this.
- Create a PHONES table in Oracle as follows:
create table phones
( name varchar2(30) primary key,
phoneno varchar2(50)
);
- Copy .jar of Struts 1.1 into /WEB-INF/lib directory of phonebook application.
- Copy .tld files from struct 1.1 into /WEB-INF directory.
- Then run the following :
http://localhost:8080/phonebook