Scope
Scope
The project Ship Management System is a web based application designed on Java technology
using Eclipse IDE. The project main aim is to develop a system which allows the user to have the
access to all the employees information , ship information as well as warehouse information .
Under the Employees, information the user can view all the details such as the his/her name , their
telephone no, their address , their salary .
Under the Ship, one can view details regarding the type of the ship , who is the captain of the ship
,what is the capacity of the ship, and name of the ship .
Under the Warehouse, information such as the warehouse manager name , what is the address of
the warehouse and how many free slots are available can be seen .
With the help of this project user does not need to work through different systems to find out the
information regarding his/her company.
Scope
• A way for the ship company to login into the system to perform different operations.
● A way in which the user can see all the employees, ship, warehouse information in
just a single click.
● A way for the user to use the system to add data (e.g. employee name ,address,
warehouse manager name ,etc. ) to the database.
Overview
Our Ship Management System is a java based GUI Application. The user can view details on a
single click. The user can use the system to insert, update and delete data from the front end, all
such changes will also reflect the corresponding database.
1
Description
Product Perspective
● User Details : This includes details like username and password for login.
● Add Employee details : This function is performed by the user of the system and is used
to add , update, delete description of the employee which will be available to the company
.
● Add Ship details: This function is performed by the user of the system and is used to add
, update, delete description of the Ship which show which ship has which captain its type
and its capacity.
● Add Warehouse : This function is performed by the user of the system and is used to
add , update, delete description of the warehouse which will describe the warehouse
location ,its manager mane ,its slots etc.
Product Functions
● Our services: User will be able to see all the services that the company provides.
● Employess : This function will allow the user to see the details of the employee and
modify them and delete them.
● Warehouse: This function will allow the user to see the details of the Warehouse and
modify them and delete them.
● Ship: This function will allow the user to see the details of the Ship and modify them
and delete them.
2
Objectives
Objective of Project the project “Ship Management System” is dedicated to the general
requirements of Ship Company. The main objective of the project is to create a Ship Management
processing that allows user to know about ships, the warehouses and the employees, etc.
The purpose of the project is to build an application program to reduce the manual work
for managing the ship company etc. It tracks all details about the company.
3
Tools and Requirements
Hardware Requirements:
S. NO Description
Software Requirements:
S. NO Item Description
4 Database php
4
Analysis Document
❖ Normalisation
The basic objective of normalization is to reduce redundancy which means that information is
to be stored only once. Storing information several times leads to wastage of storage space and
increase in the total size of the data stored. If a database is not properly designed it can give rise
to modification anomalies. Modification anomalies arise when data is added to, changed or
deleted from a database table.Normalization is the process of breaking down a table into smaller
tables.
❖ Data Dictionary
A data dictionary is a collection of the names, definitions, and attributes for data elements and
models. The data in a data dictionary is the metadata about the database. These elements are then
used as part of a database, research project, or information system. These are some of the most
common elements used in a data dictionary, though there’s variation:
• Attribute name
• Attribute type
• Entity-relationship
• Reference data
• Rules for validation, schema, or data quality
• Detailed properties of data elements
• Physical information about where data is stored
5
6
7
❖ FLOW CHART
A flowchart is simply a graphical representation of steps. It shows steps in sequential order and
is widely used in presenting the flow of algorithms, workflow or processes. Typically, a
flowchart shows the steps as boxes of various kinds, and their order by connecting them with
arrows.
8
❖ ER DIAGRAM
An Entity–relationship model (ER model) describes the structure of a database with the help of
a diagram, which is known as Entity Relationship Diagram (ER Diagram). An ER model is a
design or blueprint of a database that can later be implemented as a database. The main components
of E-R model are: entity set and relationship set.
DFD is the abbreviation for Data Flow Diagram. The flow of data of a system or a
process is represented by DFD.
It also gives insight into the inputs and outputs of each entity and the process itself.
9
0 – Level DFD
1 – Level DFD
10
❖ USE CASE DIAGRAM
A use case diagram is a graphical depiction of a user's possible interactions with a system. A use
case diagram shows various use cases and different types of users the system has and will often be
accompanied by other types of diagrams as well. The use cases are represented by either circles or
ellipses. The actors are often shown as stick figures.
11
Design Document
Modularisation
When the system is broken down into small modules i.e. functions this process is referred to as
modularization. In this project There are various modules which perform different function .
The modules are as follows :-
● User Login
This module checks user id and password. If it is correct then the system is directed to the
user page else it is redirected to the login page.
● User Form
User page is the actual user interface where the user works, This interface provides the
user with various menus such as viewing the employee details , ships details, warehouse
details and our services.
• Employees
Employees is the form that will be available to the user after a successful login. In this
form, the details of all the employees are available. The user can add details ,view details
and delete details .
• Ships
Ship is the form that will be available to the user after a successful login. In this form, the
details of all the ships are available. The user can add details ,view details and delete details.
• Warehouse
Warehouse is the form that will be available to the user after a successful login. In this
form, the details of all the ships are available. The user can add details ,view details and
delete details.
12
User Interface
The user interface is made in such a way that users can use it easily. Just as I declared
earlier this project is dependent softwares that supports java GUIs. The User Interface Is Designed
with Eclipse IDE Java.
Integrity Constrain
• Integrity Constraints are a set of rules. It is used to maintain the quality information.
• Integrity Constraints Ensure that the Data Insertion, updating, and other processes must be
performed in such a way that data integrity is not affected.
• Thus, integrity constraints are used to guard against accidental damage to the database.
A. Domain constraints
● Domain constraints can be defined as the definition of a valid set of values for an
attribute.
13
● The data type of domain includes string, character, integer, time, date, currency, etc.
● This is because the primary key value is used to identify individual rows in relation and if
the primary key has a null value, then we can't identify those rows.
● A table can contain a null value other than the primary key field.
Primary Key of Table 2, then every value of the Foreign Key in Table 1 must be null
or be available in Table 2.
Primary Key of Table 2, then every value of the Foreign Key in Table 1 must be null
or be available in Table 2.
14
Program Code
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>login</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Main page</title>
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
</head>
<body>
<!-- Web header -->
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
15
</p>
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
16
try{
rs.next();
out.println("Item selected");
String userid1=rs.getString("userid");
if(rs.getString("password").equals(password)&&rs.getString("userid").equals(userid))
{
out.println("Welcome hjvhuj " +userid);
//out.showMessageDialog(null, "Amount has been Transfered to the Beneficiary Account.....");
//<a href="index.jsp">
response.sendRedirect("index.jsp");
///System.out.println(rs.getString("password"));
}
else{
out.println("Invalid password or username.");
//response.sendRedirect("login.jsp");
}
}
catch (Exception e) {
out.println("Catch");
e.printStackTrace();
}
%>
<%
//response.sendRedirect("login.jsp");
%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Main page</title>
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
</head>
<body>
<!-- Web header -->
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
17
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col3">
<div id="featured_slide">
<div id="featured_wrap">
<ul id="featured_tabs">
<li><a href="#fc1">employees<br />
</a></li>
<li><a href="#fc2">cargo <br />
</a></li>
<li><a href="#fc3" >Warehouseing<br />
</a></li>
<li class="last"><a href="#fc4">ship<br />
</a></li>
</ul>
<div id="featured_content">
<div class="featured_box" id="fc1"><img src="images/Image3.jpg" width="1200" height="900"
/>
</div>
18
<div class="featured_box" id="fc2"><img src="images/Image1.jpg" width="940" height="290"
/>
</div>
<div class="featured_box" id="fc3"><img src="images/Image2.jpg" width="940" height="290"
/>
</div>
<div class="featured_box" id="fc4"><img src="Image0.jpg" width="940" height="290" />
</div>
</div>
</div>
</div>
</div>
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
19
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
<title>Our Services</title>
</head>
<body>
<!-- Web header -->
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col3">
<div id="breadcrumb">
<h3 align="center">Our Services</h3>
</div>
</div>
20
<div id="container">
<div id="hpage">
<ul>
<li>
<h2>Employee</h2>
<div class="imgholder"><a ><img src="images/sea-cargo-service-sea-freight-logistics-
shipping.jpg_200x200.jpg" width="200" height="140" /></a></div>
<p>We provides customized relation forwarding capabilities beside whole company and across
global market .Our community spans across 4 continents yet is continuously growing.</p>
</li>
<li>
<h2>Cargo</h2>
<div class="imgholder"><a ><img src="images/import-clearance-of-aluminum-foil-from-jnpt-
port-250x250.jpg" width="200" height="140" /></a></div>
<p>Our skilled staff perform deal with the cargo rapidly to secure your goods are cleared out of
the ports with no trouble</p>
</li>
<li>
<h2>Warehouseing</h2>
<div class="imgholder"><a ><img src="images/coolest-warehouse-clip-art-airpro-transport-
2009-services-warehousing-warehouse-clip-art-35bsm7r9l57o41dwm0a87e.png" width="200"
height="140" /></a></div>
<p>Providing storage facilities for India.</p>
</li>
<li class="last">
<h2>ship</h2>
<div class="imgholder"><a ><img src="images/door-to-door-delivery-250x250.png"
width="200" height="140" /></a></div>
<p>Providing with the best ships to carry forward the operations.</p>
</ul>
<br class="clear" />
</div>
</div>
</div>
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
21
</ul>
</div>
<br class="clear" />
</div>
</div>
<!-- Web bottom -->
<div class="wrapper col6">
<div id="copyright">
<p class="fl_left">Copyright © 2021 - All Rights Reserved</p>
</div>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
<title></title>
</head>
<body>
<!-- Web header -->
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
22
<li class="active"><a href="index.jsp">Home</a></li>
<li><a href="OurServices.jsp">Our Services</a></li>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<ul>
<li><a href="Employee.jsp" >Enter Employee Details</a></li>
<li><a href="Emp_view.jsp" >View Employee Details</a></li>
<li><a href="Emp_M.jsp" >Modify Employee Details</a></li>
<li><a href="Emp_Del.jsp" >Delete Employee Details</a></li>
</ul>
</div>
</div>
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
23
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html >
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
24
<div class="wrapper col4">
<div id="container">
<ul>
<li><a href="Ware House.jsp">Enter Warehouse Details</a></li>
<li><a href="wareh_view.jsp" >View Warehouse Details</a></li>
<li><a href="WareH_M.jsp">Modify Warehouse Details</a></li>
<li><a href="wareh_del.jsp">Delete Warehouse Details</a></li>
</ul>
</div>
</div>
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
25
<!-- Web header -->
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<ul>
<li><a href="Ships.jsp" >Enter Ship Details</a></li>
<li><a href="Ships_view.jsp" >View Ship Details</a></li>
<li><a href="Ships_M.jsp" >Modify Ship Details</a></li>
<li><a href="Ships_Del.jsp" >Delete Ship Details</a></li>
</ul>
</div>
</div>
<!-- Web footer -->
26
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
27
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Register</h1>
<form action="iep.jsp" method="POST">
<hr>
<label for="Name"><b>Name</b></label>
<input type="text" placeholder="Enter Name" name="name"><br>
28
<input type="submit" value="Enter">
<!-- <button type="submit" class="em_registerbtn">Enter</button> -->
</form>
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
29
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>View employee data</h1>
<form action="empreg.jsp" method="POST">
<hr>
</div>
</div>
<!-- Web footer -->
30
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
<title></title>
<title>Insert title here</title>
</head>
<body>
<!-- Web header -->
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
31
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Modify</h1>
<form action="editemp.jsp" method="POST">
<hr>
<label for="Name"><b>Name</b></label>
<input type="text" placeholder="Enter Name" name="name"><br>
<label for="add"><b>Address</b></label>
<input type="text" placeholder="Enter Address" name="add"><br>
<label for="tel"><b>Telephone</b></label>
<input type="text" placeholder="Enter Telephone" name="tel"><br>
<label for="sal"><b>Salary</b></label>
<input type="text" placeholder="Enter Salary" name="sal"><br>
32
<hr>
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
33
<div class="wrapper col1">
<div id="header">
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Remove employee data</h1>
<form action="delemp.jsp" method="POST">
</div>s
</div>
34
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
</head>
<body>
35
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>View Ware house Details</h1>
36
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
37
</div>
</div>
<br class="clear" />
</div>
</div>
<!-- Web bar -->
<div class="wrapper col2">
<div id="topnav">
<ul>
<li class="active"><a href="index.jsp">Home</a></li>
<li><a href="OurServices.jsp">Our Services</a></li>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Modify</h1>
<hr>
<label for="add"><b>Address</b></label>
<input type="text" name="add"><br>
<hr>
38
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
</head>
<body>
39
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Remove Warehouse Details</h1>
<form action="deletewh.jsp" method="POST">
<label for="ID"><b>ID number</b></label>
<input type="text" name="ID"><br>
<button type="submit" class="wh_del">Delete</button>
<hr>
</form>
</div>
</div>
40
<!-- Web footer -->
<div class="wrapper col5">
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
</head>
<body>
41
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Remove Warehouse Details</h1>
<form action="deletewh.jsp" method="POST">
<label for="ID"><b>ID number</b></label>
<input type="text" name="ID"><br>
<button type="submit" class="wh_del">Delete</button>
<hr>
</form>
</div>
</div>
42
<div id="footer">
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
43
<div class="topbox last">
</div>
</div>
<br class="clear" />
</div>
</div>
<!-- Web bar -->
<div class="wrapper col2">
<div id="topnav">
<ul>
<li class="active"><a href="index.jsp">Home</a></li>
<li><a href="OurServices.jsp">Our Services</a></li>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>View Ship details</h1>
</form>
<hr>
</div>
</div>
44
<div id="newsletter">
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
45
<div class="topbox last">
</div>
</div>
<br class="clear" />
</div>
</div>
<!-- Web bar -->
<div class="wrapper col2">
<div id="topnav">
<ul>
<li class="active"><a href="index.jsp">Home</a></li>
<li><a href="OurServices.jsp">Our Services</a></li>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Modify</h1>
<hr>
<label for="Name"><b>Name</b></label>
<input type="text" placeholder="Enter Name" name="name"><br>
<label for="type"><b>type</b></label>
<input type="text" placeholder="Enter type" name= "type"><br>
<label for="capacity"><b>Capacity</b></label>
<input type="text" placeholder="Enter capacity" name="capacity" ><br>
<hr>
46
<button type="submit" class="registerbtn">Enter</button>
</form>
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
47
<div id="logo">
<h1 align="center">Ayush Ship Company</h1>
<p align="center">Ship Management System</p>
</div>
<div class="fl_right">
<ul>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Remove Ship details</h1>
<form action="delship.jsp" method="POST">
<hr>
</form>
48
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
49
"root","");
String id=request.getParameter("ID");
String name=request.getParameter("name");
String address=request.getParameter("type");
String tel=request.getParameter("c_name");
String sal=request.getParameter("capacity");
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
try
{
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/oopproject",
"root","");
String id=request.getParameter("ID");
//String name=request.getParameter("name");
50
Statement st= conn.createStatement();
ResultSet rs;
//System.out.println("update warehouse set
WH_MANAGER_NAME='"+tel+"',WH_Address='"+address+"',WH_Free_Slot='"+sal+"'
where WH_id="+id+")");
int i=st.executeUpdate("DELETE FROM employee where Emp_id="+id+"");
conn.setAutoCommit(true);
conn.close();
response.sendRedirect("EmployeeMS.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</body>
String id=request.getParameter("ID");
//String name=request.getParameter("name");
51
//System.out.println("update warehouse set
WH_MANAGER_NAME='"+tel+"',WH_Address='"+address+"',WH_Free_Slot='"+sal+"'
where WH_id="+id+")");
int i=st.executeUpdate("DELETE FROM warehouse where WH_id="+id+"");
conn.setAutoCommit(true);
conn.close();
response.sendRedirect("WarehouseMS.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</body>
String id=request.getParameter("ID");
//String name=request.getParameter("name");
52
conn.setAutoCommit(true);
conn.close();
response.sendRedirect("ShipMS.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</body>
String id=request.getParameter("ID");
String name=request.getParameter("name");
String address=request.getParameter("type");
String tel=request.getParameter("c_name");
String sal=request.getParameter("capacity");
53
conn.setAutoCommit(true);
conn.close();
response.sendRedirect("ShipMS.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
try
{
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/oopproject",
"root","");
String id=request.getParameter("ID");
String name=request.getParameter("name");
String address=request.getParameter("add");
String tel=request.getParameter("tel");
String sal=request.getParameter("sal");
54
conn.setAutoCommit(true);
conn.close();
response.sendRedirect("EmployeeMS.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
try
{
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/oopproject",
"root","");
String id=request.getParameter("ID");
//String name=request.getParameter("name");
String address=request.getParameter("add");
String tel=request.getParameter("mname");
String sal=request.getParameter("fslot");
55
conn.setAutoCommit(true);
conn.close();
response.sendRedirect("WarehouseMS.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
56
</div>
<!-- Web bar -->
<div class="wrapper col2">
<div id="topnav">
<ul>
<li class="active"><a href="index.jsp">Home</a></li>
<li><a href="OurServices.jsp">Our Services</a></li>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>View Ware house Details</h1>
String id=request.getParameter("ID");
//String name=request.getParameter("name");
57
<td>ID=<%=resultSet.getString("Emp_id")%> </td><br />
<td>Name=<%=resultSet.getString("Emp_Name")%> </td><br />
<td>Telephone=<%=resultSet.getString("Emp_Telephone")%> </td><br />
<td>Address=<%=resultSet.getString("Emp_Address")%> </td><br />
<td>Salary=<%=resultSet.getString("Emp_Salary")%> </td><br />
</tr>
<%
}
conn.setAutoCommit(true);
conn.close();
//response.sendRedirect("index.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
58
</div>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
try
{
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/oopproject",
"root","");
String id=request.getParameter("ID");
String name=request.getParameter("name");
String address=request.getParameter("add");
String tel=request.getParameter("tel");
String sal=request.getParameter("sal");
%>
</body>
59
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
<script type="text/javascript" src="layout/scripts/jquery.min.js"></script>
<script type="text/javascript" src="layout/scripts/jquery.slidepanel.setup.js"></script>
<title></title>
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
60
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>Register</h1>
<form action="shipreg.jsp" method="POST">
<hr>
<label for="Name"><b>Name</b></label>
<input type="text" placeholder="Enter Name" name="name"><br>
<label for="add"><b>Address</b></label>
<input type="text" placeholder="Enter type" name="type"><br>
<label for="tel"><b>Telephone</b></label>
<input type="text" placeholder="Enter capacity" name="capacity"><br>
<label for="sal"><b>Salary</b></label>
<input type="text" placeholder="Enter captain name" name="captain_name" required><br>
<hr>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
61
</div>
<!-- Web bottom -->
<div class="wrapper col6">
<div id="copyright">
<p class="fl_left">Copyright © 2021 - All Rights Reserved</p>
</div>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
62
<ul>
<li class="active"><a href="index.jsp">Home</a></li>
<li><a href="OurServices.jsp">Our Services</a></li>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>View Ware house Details</h1>
String id=request.getParameter("ID");
//String name=request.getParameter("name");
63
<td>Capacity=<%=resultSet.getString("S_Capacity")%></td><br />
</tr>
<%
}
conn.setAutoCommit(true);
conn.close();
//response.sendRedirect("index.jsp");
}
catch(Exception e)
{
out.print(e);
%>
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
64
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html >
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
65
<div class="wrapper col4">
<div id="container">
<h1>View Ware house Details</h1>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
66
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
try
{
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/oopproject",
"root","");
String id=request.getParameter("ID");
//String name=request.getParameter("name");
String address=request.getParameter("add");
String tel=request.getParameter("mname");
String sal=request.getParameter("fslot");
%>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import ="java.sql.*" %>
<%@ page import ="javax.sql.*" %>
67
<link rel="stylesheet" href="layout/styles/layout.css" type="text/css" />
</head>
<body>
</ul>
<p>Tel: +91 8329061633| Mail: [email protected]</p>
</ul>
</div>
</div>
<!-- Web Body -->
<div class="wrapper col4">
<div id="container">
<h1>View Ware house Details</h1>
68
<label for="ID"><b>ID number</b></label>
<input type="text" name="ID"><br>
<button type="submit" class="wh_view">View</button>
<hr>
</form>
<table>
<%
try
{
Class.forName("com.mysql.jdbc.Driver");
java.sql.Connection conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/oopproject",
"root","");
String id=request.getParameter("ID");
//String name=request.getParameter("name");
<%
}
conn.setAutoCommit(true);
conn.close();
//response.sendRedirect("index.jsp");
}
catch(Exception e)
{
out.print(e);
69
}
%>
</table>
</div>
</div>
</div>
<div class="footbox">
<h2>Contact Us</h2>
<ul>
70
Test Cases
A test case is a document, which has a set of test data, preconditions, expected results and post
conditions, developed for a test scenario in order to verify compliance against a specific
requirement.
Test Case acts as the starting point for the test execution, and after applying a set of input values,
the application has a definitive outcome and leaves the system at some end point or also known
as execution post condition.
To test my application, i have used unit testing. Let's take the Admin login function for this test
case.
Step 2 : In order to execute this test case, some data needs to be entered. Adding data below -
Step 3 : To test this test case, the tester needs to perform some functions -
71
Step 4 : Expected results to be noted down.
Test Case Description Test Data Expected result
1 check the form response Id : admin Login Successful
when the id and
password is entered by Password : admin
the user.
Check expected results against actual results and assign a pass or fail status to the test case.
Test Test case Test Steps Test data Expected Actual result Pass/Fail
Case scenario result
1 Valid data 1. Enter id Id : admin Login Login PASS
as input successful Successful
2. Enter Password :
password
admin
3. Click on
login
2 Invalid 1. Enter id Id : admin Login Login FAIL
data as unsuccessful unsuccessful
input 2. Enter Password :
password
1234
3. Click on
Login
72
Output Screens
73
74
75
76
77
78
79
80
81
LIMITATIONS OF THE PROJECT
Since this is our first project it has some limitation. Due to less knowledge fields and
limited time we were not able to fulfil all our expectations that we expected we could do while the
project got started.
• This application is not suitable for those organization where there is different level of
warehouses.
82
Future Scope
In the future aspects of this application we can develop it to enable for the tracking of the
warehouses and the cargo that is stored in it and also we can keep a track of the ship travel route.
With this we can also add the dock/port facilities to keep a track of the cargo being arrived
and delivered and that the application can be used by the large-scale organizations as well.
83