Chapter 1: INTRODUCTION
1.1 Introduction
With the advancement of technology, application areas of computer are rising day by
day. Efficient and effective fish marketing ensures fish availability to consumers at the right time
and in the right place. About 70 % of the fish catch is marketed fresh and the remaining is
utilized in the form of processed, dried, smoked, reduced to fishmeal, etc.
It’s been estimated that around 60 % of the Indian populace consumes fish and the
consumption pattern varies spatiotemporally.
The annual per capita consumption of fish for the entire population is estimated at 5-6 kg
whereas for the fish eating population it is found to be 8 -9 kilogram. Average annual per capita
fish consumption in Kerala, 30 kg, is very high compared to that of other parts of India.
Fish marketing system in India is rapidly changing in recent years due to the vast improvement
in handling technology, transportation and consequent market penetration. In the new era,
technology has spread across the length and breadth of every existing system, increasing
competition and efficiency at every level of the chain. There exists considerable geographical
spread between the fish production and consumption centres thereby, creating ample
opportunities of time, space and utilities. Online trading of commodities and services has
captured considerable market space and share in India and world over targeting this opportunity.
Online marketing is the marketing of products or services using digital technologies, mainly on
the Internet, but also including mobile phones, display advertising, and any other digital medium
[3]. Online fish trade is gaining traction in this digital age where people prefer everything
delivered at their doorstep. Online marketplace for fresh fish sources products directly from
farmers and supplies them to customers.
1.2 Problem definition
feshfishwala.com is Nagpur's finest and leading Online Fresh Water Fish / Seafood
website formed with an objective to provide finest Fresh Water Fish / Seafood to door step of
Nagpur's Fish lovers. Our motto is to provide “Trawler to Kitchen”freshfishwala.com offers
fresh, the highest quality, hygienic, economical and the widest varieties of Fresh Water Fish /
Seafood to satisfy your taste buds and appetite.
freshfishwala.com is an online Fish Store where customers can finally Buy Fresh Seafood
and other Fishes sourced from the local shores and water bodies. All the fish provided are
procured and delivered on the same day. The Fish are cut as per the customer’s specification viz.
Curry Cut, Fry Cut, Bengali Cut. etc. We clean the fish with proper care maintaining the hygiene
and cleanliness Furthermore the Fish are then packed in biodegradable trays and delivered in
temperature controlled delivery bags.
1
1.3 Modules
1.2.1 : Admin
This module is main controller of project they have full privilege’s, Add product, request
accept or cancel, Edit Product etc.
1.2.2 : Users
Guest can register the users with his full details.
1.2.3 : Payments
Customer can pay online by using payment method.
1.2.4 : Feedback
Customer can be give the feedback about the services or product.
1.4 Background study
The online fish marketing attempts to improve the existing lacunas in the present marketing
system. The primary concern of the fish marketing system is the existence of a large number of
middlemen. With the expansion in transport and communication network, changes in demands
and development of markets, marketing channels for fish products in India have undergone
considerable change, both in terms of quality and strength. The most common fish marketing
channels are as follows [4]. With time marketing strategies changed and the length of marketing
channels increased with more and more agent middlemen getting involved in the process of
marketing, side-lining the fishermen. The marketing middlemen are mostly interested in
realizing huge marketing margins with minimal value addition and do not transfer their title
deeds to fishermen.
1.5 Objectives
To make fish available to consumers at the right time and in the right place requires an
effective marketing system. Fishermen who catch fish by labouring overnight (from common-
property water bodies) do not usually sell fish in retail markets. At the break of day, they take
their catches to places where Nikaries/Beparies, or retailers, meet them and bargain by the lot. At
the landing point, the number of intermediaries is low. Only one or two intermediaries may
approach a fisherman
he meets buyers (intermediaries) one at a time and at different times,
he cannot keep fish for a long time because the product is highly perishable,
he has no specific place to sit in the market to sell his fish.
Entry into the market is difficult for fishermen for many reasons, mainly because
of strong non-cooperation and resistance from the Paikers/retailers. Thus, it is
obvious why fishing communities remain poor or are getting poorer over the
years, although they trade an important, necessary and every-day commodity.
2
Markets at the primary catch stage are almost completely non-competitive and
therefore, exploitation is high.
1.6 References
On Internet:
https://www.licious.in/seafood
http://www.fishmart.co.in/
https://www.freshtohome.com/
3
Chapter 2: SYSTEM ANALYSIS
2.1 Introduction:
The end of the production process in agriculture is marketing. Marketing is the act of gathering
in a public places for buying and selling merchandise or farm products such as fish and fish
products. Farmers frequently consider marketing of fish products as one of their major
challenges in fish farming. This is because while the farmers are able to identify poor prices,
lack of transport, lack of ready market, and high post-harvest losses as the challenges, they are
often poorly equipped to identify potential solutions. Successful marketing requires learning new
skills, new techniques and new ways of obtaining and using the information appropriately.
Marketing is the point in which the farmer’s products such as fish leave him with a return called
income. Marketing of fish involves all the activities in the flow of fish or fish products from the
farmer to the consumers. It includes various operations required to move the fish or fish products
from the producer to the consumer. Marketing of fish also entails the buying and selling of fish
by an individual who may not be a fish farmer. The person’s target is usually to close the gap
between the areas of scarcity and abundance. In this chapter, marketing of fish is centred on
processed fish which were also referred to as fish products since that of live fish was handled in
chapter five. The main feature of marketing fish is that it is the point at which the price of fish is
determined by the parties involved such as the farmers and the middle men or/and consumers for
economic return.
2.2 System Requirement Specification:
❖ Hardware Requirements:-
❖ Processor : Intel Pentium
❖ RAM : 1 GB or More
❖ Software Requirements:-
❖ Front End: - HTML CSS JS
❖ Language:-Java
❖ Back End: - MySQL
❖ Operation System: - Windows NT
4
2.3 Need For Computerization:
We all know the importance of computerization. The world is moving ahead at lightning speed
and everyone is running short of time. One always wants to get the information and performance
and task he/she/they desires within a short period of time and to with amount of efficiency and
accuracy application area for the computerization has been selected on the basis of following
factors:
Minimizing the manual records kept at different locations
There will be more data integrity.
Facilitating desired information display, very quickly, by retrieving information from
users.
Faciliting various statistical information which help in decision-making?
To reduce manual efforts in activities that involved repetitive work.
Updating and deletion of such a huge amount of data will become easier.
2.4 Functional Features of the Model:
As far as the project is developed the functionality is simple, the proposal is to
strengthen the Audit Status Monitoring and make them effective and better. The
proposed software will cover the information needs with respect to each request
of the user group viz. accepting the request, providing vulnerability document
report and the current status of the audit.
2.5 Introduction to Project Tools
i) Eclipse IDE
Eclipse is a free, Java-based development platform known for its plugins that allow
developers to develop and test code written in other programming languages. Eclipse is
released under the terms of the Eclipse Public License.
The Eclipse Foundation is an independent, nonprofit corporation based in Canada that
shepherds the open source Eclipse software development community and includes the
legal jurisdiction of the European Union.
5
Eclipse is supported by over 320 members, 1,750 committers and more than 332 million
lines of code. The foundation's goal is to create both a community and an ecosystem of
complementary products and services.
The history of the Eclipse Foundation
Eclipse started in 2001 when IBM donated three million lines of code from its Java tools
to develop an open source integrated development environment (IDE).
Eclipse IDE was initially overseen by a consortium of software vendors seeking to
create and foster a new community complementing Apache's open source community.
It has been said, though not confirmed, that the platform's name was derived from a
secondary goal, which was to eclipse Microsoft's popular IDE, Visual Studio.
ii) Apache Tomcat
The Apache Tomcat® software is an open source implementation of the Jakarta
Servlet, Jakarta Server Pages, Jakarta Expression Language, Jakarta WebSocket, Jakarta
Annotations and Jakarta Authentication specifications. These specifications are part of
the Jakarta EE platform.
The Jakarta EE platform is the evolution of the Java EE platform. Tomcat 10 and later
implement specifications developed as part of Jakarta EE. Tomcat 9 and earlier
implement specifications developed as part of Java EE.
The Apache Tomcat software is developed in an open and participatory environment and
released under the Apache License version 2. The Apache Tomcat project is intended to
be a collaboration of the best-of-breed developers from around the world.
Apache Tomcat software powers numerous large-scale, mission-critical web applications across
a diverse range of industries and organizations. Some of these users and their stories are listed on
the PoweredBy wiki page.
Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat project logo are
trademarks of the Apache Software Foundation.
The Apache Tomcat Project is proud to announce the release of version 8.5.88 of Apache
Tomcat. This release implements specifications that are part of the Java EE 7 platform. The
notable changes compared to 8.5.87 include:
Reduce the default value of max Parameter Count from 10,000 to 1,000.
Correct a regression in the fix for bug 66442 that meant that streams without a
response body did not decrement the active stream count when completing,
leading to ERR_HTTP2_SERVER_REFUSED_STREAM for some connections.
Refactor synchronization blocks locking on Socket Wrapper to use ReentrantLock
to support users wishing to experiment with project Loom.
6
Implement RFC 9239; note the MIME types for Javascript has changed to
text/javascript.
iii) MY SQL
What is a database? Quite simply, it’s an organized collection of data. A database management
system (DBMS) such as Access, FileMaker Pro, Oracle or SQL Server provides you with the
software tools you need to organize that data in a flexible manner. It includes facilities to add,
modify or delete data from the database, ask questions (or queries) about the data stored in the
database and produce reports summarizing selected contents. MySQL is a multithreaded, multi-
user SQL database management system (DBMS). The basic program runs as a server providing
multi-user access to a number of databases. Originally financed in a similar fashion to the JBoss
model, MySQL was owned and sponsored by a single for-profit firm, the Swedish company
MySQL now a subsidiary of Sun Microsystem, which holds the copyright to most of the
codebase. The project’s source code is available under terms of the GNU General Public
License, as well as under a variety of proprietary agreements. MySQL is a database. The data in
MySQL is stored in database objects called tables. A table is a collections of related data entries
and it consists of columns and rows. Databases are useful when storing information
categorically. A company may have a database with the following tables: “Employees”,
“Products”, “Customers” and “Orders”.
iv) Java Language
Java was developed by James Gosling at Inc in the year, later acquired by Oracle Corporation. It
is a simple programming language. Java makes writing, compiling, and debugging programming
easy. It helps to create reusable code and modular programs.
Java is a class-based, object-oriented programming language and is designed to have as few
implementation dependencies as possible. A general-purpose programming language made for
developers to write once run anywhere that is compiled Java code can run on all platforms that
support Java. Java applications are compiled to byte code that can run on any Java Virtual
Machine. The syntax of Java is similar to c/c++.
2.6 References
www.httsps://oraclecom/java/technologies/java-se-glance-html
www.w3schools.com
www.javatpoint.com
https://tomcat.apache.org/
www.mysql.co.in/info?/
https://www.eclipse.org/ide/
7
Chapter 3: SYSTEM DESIGN
3.1 Introduction:
The system design is divided in to two portions. The Administrator section and the
User(student’s) section.
Administrator
1. The Administrator can deliver or cancel the request of product.
2. He can control the status of the online payment.
3.He can edit the information of particular product .
4.Admin can Add new product and also handle whole process.
A process of converting user originated inputs to a computer-based format. Input design
is an important part of development process since inaccurate input data are the most
common cause of errors in data processing. Erroneous entries can be controlled by input
design. It consists of developing specifications and procedures for entering data into a
system and must be in simple format. The goal of input data design is to make data entry
as easy, logical and free from errors as possible. In input data design, we design the
source document that capture the data and then select the media used to enter them into
the computer. There are two major approaches for entering data in to the computer:
· Menus
· Dialog Boxes
Menus:
8
A menu is a selection list that simplifies computer data access or entry. Instead of
remembering what to enter, the user chooses from a list of options. A menu limits a user
choice of response but reduce the chances for error in data entry
Dialog Box:
Dialog boxes are windows and these windows are mainly popup, which
appear in response to certain conditions that occur when a program is run. It allows the
display of bitmaps and pictures. It can have various controls like buttons, text boxes, list
boxes and combo boxes. Using these controls, we can make a ‘dialog’ with the program.
The proposed system has three major inputs. They are Machine Registration, Machine
Scheduling and Request Form
3.2 DATA FLOW DIAGRAMS
Process Design Process design plays an important role in project development. In order
to understand the working procedure, process design is necessary. Data Flow Diagram
and System Flow chart are the tools used for process design. System Flow Chart is a
graphical representation of the system showing the overall flow of control in processing
at the job level; specifies what activities must be done to convert from a physical to
logical model. Data Flow Diagram is the logical representation of the data flow of the
project. The DFD is drawn using various symbols. It has a source and a destination. The
process is represented using circles and source and destination are represented using
squares. The data flow is represented using arrows. One reader can easily get the idea
about the project through Data Flow Diagram.
SYMBOLS USED IN DATA FLOW DIAGRAM:
i) source rectangle, which defines or destination
ii) Arrow, which shows dataflow.
iii)
Circle, which represent a process that transforms incoming data into
outgoing flow.
9
iv) Open rectangle, which shows a data store.
1. DFD Level-0 Module
2. DFD Level-1 module
10
3. DFD Level-2 module
11
3.3 Entity Relationship Diagram
An Entity- Relationship diagram gives an overview of entities such as people, objects or
concepts in a system and how they relate or depend on one another. The entities in this
system were; customer, restaurant, order, meal and bill.
12
3.4 Database Design
The data in the system has to be stored and retrieved from database. Designing the
database is part of system design. Data elements and data structures to be stored have
been identified at analysis stage. They are structured and put together to design the data
storage and retrieval system. A database is a collection of interrelated data stored with
minimum redundancy to serve many users quickly and efficiently. The general objective
is to make database access easy, quick, inexpensive and flexible for the user.
Relationships are established between the data items and unnecessary data items are
removed. Normalization is done to get an internal consistency of data and to have
minimum redundancy and maximum stability. This ensures minimizing data storage
required, minimizing chances of data inconsistencies and optimizing for updates. The
MySQL database has been chosen for developing the relevant databases.
Login
13
Product Table
Cart Table
Message Table
14
Chapter 4: RESULT AND ANALYSIS
SignUp
Home
15
MyCart
MyOrders
16
Edit Details
Admin
17
Add New Products
Edit Product
18
Chapter 5: IMPLEMENTATION
Signup.jsp
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/signup-style.css">
<title>Signup</title>
</head>
<body>
<div id='container'>
<div class='signup'>
<form action="signupAction.jsp" method="post">
<input type="text" name="name" placeholder="Enter Name" required="required">
<input type="email" name="email" placeholder="Enter Email" required="required">
<input type="number" name="mobile" placeholder="Enter Mobile No."
required="required">
<input type="password" name="password" placeholder="Enter Password"
required="required">
<input type="submit" value="Signup">
</form>
<h2><a href="login.jsp">Login</a></h2>
</div>
<div class='whysign'>
<%
String msg=request.getParameter("msg");
if("valid".equals(msg)){
%><h1>Successfully Updated</h1>
<%}%>
<%
if("invalid".equals(msg))
{
%>
<h1>Some thing Went Wrong! Try Again !</h1>
<%}%>
<h2>Online Shopping</h2>
19
<p>The Online Shopping System is the application that allows the users to shop
online without going to the shops to buy them.</p>
</div>
</div>
</body>
</html>
Home.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="project.ConnectionProvider"%>
<%@page import="java.sql.*"%>
<%@include file="header.jsp" %>
<%@include file="footer.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home</title>
<style>
.grid-container img {
width: 70%;
transition: 0.5s all ease-in-out;
}
h3
{
color: yellow;
text-align: center;
}
.grid-container {
display: grid;
grid-template-columns: auto auto auto;
background-color: white;
padding: 10px;
}
.grid-item {
background-color: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(0, 0, 0, 0.8);
padding: 10px;
font-size: 30px;
text-align: center;
}
#desc{
20
font-size: 12px;
padding: 10px;
}
</style>
</head>
<body>
<div style="color: white; text-align: center; font-size: 30px;">Home <i class="fa fa-
institution"></i></div>
<%
String msg=request.getParameter("msg");
if("added".equals(msg)){
%><h5 class="alert">Product added successfully!</h5>
<%} %>
<%
if("exist".equals(msg)){
%><h5 class="alert">Product already exist in you cart! Quantity increased!</h5>
<% } %>
<%
if("invalid".equals(msg)){
%><h5 class="alert">Sorry Something went wrong!</h5>
<% } %>
<div class="grid-container">
<%
int id=1;
try{
Connection con=ConnectionProvider.getConn();
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from product where active='Yes'");
while(rs.next()){
%>
<div class="grid-item">
<div class="imgs">
<img src="getImage.jsp?id=<%=rs.getString(1)%>" width="50px"/>
</div>
<h4><%=rs.getString(2) %></h4>
<p style={font-size-adjust: 1px;}>Price: <i class="fa fa-inr"></i> <%=rs.getString(4)
%></p>
<span id="desc" ><%=rs.getString(6) %></span><br>
<a href="addtoCartAction.jsp?id=<%=rs.getString(1) %>" class="add-to-cart btn
btn-primary">Add to cart <i class='fas fa-cart-plus'></i></a></td>
</div>
<%
}}catch(Exception ex){
//System.out.println(ex);
21
}
%>
</div>
<br>
<br>
<br>
</body>
</html>
Mycat.jsp
<%@page import="org.apache.jasper.tagplugins.jstl.core.Catch"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="project.ConnectionProvider"%>
<%@page import="java.sql.*"%>
<%@include file="header.jsp" %>
<%@include file="footer.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>My Cart</title>
<style>
h3
{
color: yellow;
text-align: center;
}
</style>
</head>
<body>
<div style="color: white; text-align: center; font-size: 30px;">My Cart <i class='fas fa-
cart-arrow-down'></i></div>
<%
String msg=request.getParameter("msg");
if("notPossible".equals(msg)){
%>
<h4>There is only one Quantity! So click on remove!</h4>
<%} %>
<%
if("inc".equals(msg)){
%>
22
<h4>Quantity Increased Successfully!</h4>
<%} %>
<%
if("dec".equals(msg)){
%>
<h4>Quantity Decreased Successfully!</h4>
<%}%>
<%
if("removed".equals(msg)){
%>
<h4>Product Successfully Removed!</h4>
<%} %>
<% if("Not".equals(msg)){
%>
<h4>Sorry Something Went Wrong!</h4>
<%} %>
<table>
<thead>
<%
int i=0;
int total=0;
int sno=0;
try{
Connection con=ConnectionProvider.getConn();
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select sum(total) from cart where email='"+email+"' and
address is NULL");
while(rs.next()){
total=rs.getInt(1);
}
%>
<tr>
<th scope="col" style="background-color: yellow;">Total:<%out.println(total);
%> <i class="fa fa-inr"></i> </th>
<%if(total>0){ %> <th scope="col"><a
href="addressPaymentForOrder.jsp">Proceed to order</a></th>
</tr>
</thead>
<thead>
<tr>
<th scope="col">S.No</th>
<th scope="col">Product Name</th>
<th scope="col">Category</th>
<th scope="col"><i class="fa fa-inr"></i> price</th>
<th scope="col">Quantity</th>
<th scope="col">Sub Total</th>
23
<th scope="col">Remove <i class='fas fa-trash-alt'></i></th>
</tr>
</thead>
<tbody>
<%
ResultSet rst=st.executeQuery("select * from product inner join cart on
product.ids=cart.product_id and cart.email='"+email+"'and cart.address is NULL ");
while(rst.next())
{
%>
<tr>
<%sno=sno+1; %>
<td><%out.println(sno); %></td>
<td><%=rst.getString(2) %></td>
<td><%=rst.getString(3) %></td>
<td><i class="fa fa-inr"></i><%=rst.getString(4) %> </td>
<td><a
href="incDecQuantityAction.jsp?id=<%=rst.getString(1)%>&quantity=inc"><i
class='fas fa-plus-circle'></i></a><%=rst.getString(10) %><a
href="incDecQuantityAction.jsp?id=<%=rst.getString(1)%>&quantity=dec"><i
class='fas fa-minus-circle'></i></a></td>
<td><i class="fa fa-inr"></i><%=rst.getString(12) %> </td>
<td><a href="removeFromCart.jsp?id=<%=rst.getString(1)%>">Remove <i
class='fas fa-trash-alt'></i></a></td>
</tr>
<%
}}
}catch(Exception ex){
%>
</tbody>
</table>
<br>
<br>
<br>
</body>
</html>
Myorders.jsp
<%@page import="org.apache.jasper.tagplugins.jstl.core.Catch"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="project.ConnectionProvider"%>
24
<%@page import="java.sql.*"%>
<%@include file="header.jsp" %>
<%@include file="footer.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Home</title>
</head>
<body>
<div style="color: white; text-align: center; font-size: 30px;">My Orders <i class='fab
fa-elementor'></i></div>
<table>
<thead>
<tr>
<th scope="col">S.No</th>
<th scope="col">Product Name</th>
<th scope="col">category</th>
<th scope="col"><i class="fa fa-inr"></i> Price</th>
<th scope="col">Quantity</th>
<th scope="col"><i class="fa fa-inr"></i> Sub Total</th>
<th scope="col">Order Date</th>
<th scope="col">Expected Delivery Date</th>
<th scope="col">Payment Method</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<%
//String email =session.getAttribute("email").toString();
//String bill =request.getParameter("id").toString();
//String incdec =request.getParameter("quantity").toString();
int sno=0;
int total=0;
int quantity=0;
int final_total=0;
int i=0;
try{
Connection con=ConnectionProvider.getConn();
Statement st=con.createStatement();
ResultSet rs1=st.executeQuery("select * from cart inner join product where
cart.product_id=product.ids and cart.email='"+email+"' and cart.orderdate is not
NULL");
while(rs1.next()){
25
//price=rs.getInt(4);
sno=sno+1;
//quantity=rs.getInt(3);
//ResultSet rs2=st.executeQuery("select * from users inner join cart where
cart.email='"+email+"' and cart.status='bill'");
//while(rs2.next()){
%>
<tr>
<td><% out.println(sno); %></td>
<td><%=rs1.getString(17) %></td>
<td><%=rs1.getString(18) %></td>
<td><i class="fa fa-inr"></i><%=rs1.getString(19) %> </td>
<td><%=rs1.getString(3) %></td>
<td><i class="fa fa-inr"></i><%=rs1.getString(5) %> </td>
<td><%=rs1.getString(11) %></td>
<td><%=rs1.getString(12) %></td>
<td><%=rs1.getString(13) %></td>
<td><%=rs1.getString(15) %></td>
</tr>
<%
}
}catch(Exception ex){
out.println(ex);
%>
</tbody>
</table>
<br>
<br>
<br>
</body>
</html>
Addnewproduct.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="project.ConnectionProvider"%>
<%@page import="java.sql.*"%>
<%@include file="adminHeader.jsp" %>
<%@include file="../footer.jsp" %>
26
<html>
<head>
<title>Add New Product</title>
</head>
<body>
<%
String msg=request.getParameter("msg");
if("done".equals(msg)){
%>
<h4 class="alert">Product Added Successfully!</h4>
<%} %>
<% if("wrong".equals(msg)){
%>
<h4 class="alert">Some thing went wrong! Try Again!</h4>
<%}%>
<%
int id=1;
try{
Connection con=ConnectionProvider.getConn();
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select max(ids) from product");
while(rs.next()){
id=rs.getInt(1);
id=id+1;
}catch(Exception ex){
%>
<div class="col-md-12 col-md-offset-8" align="center">
<form class="form-horizontal" action="../uploadImage" enctype="multipart/form-data"
method="post">
<h3 style="color: blacks;">Product ID: <%out.println(id);%> </h3>
<input type="hidden" name="id" value="<%out.println(id); %>">
<input type="hidden" name="types" value="add">
<fieldset>
27
<!-- Form Name -->
<legend style="align: center;"> ADD NEW PRODUCTS</legend>
<!-- Text input-->
<!-- Text input-->
<div class="form-group">
<div class="col-md-4">
<input id="product_name" name="name" placeholder="Enter Name" class="form-
control input-md" required="" type="text">
</div>
</div>
<!-- Textarea -->
<div class="form-group">
<div class="col-md-4">
<textarea class="form-control" id="product_name_fr" placeholder="Enter
Descriptions" name="description"></textarea>
</div>
</div>
<!-- Text input-->
<div class="form-group">
<div class="col-md-4">
<input id="product_name_fr" name="category" placeholder="Enter Category"
class="form-control input-md" required="required" type="text">
</div>
</div>
<!-- Text input-->
<div class="form-group">
<div class="col-md-4">
<input id="available_quantity" name="price" placeholder="Enter Price" class="form-
control input-md" required="" type="number">
</div>
</div>
<!-- Select Basic -->
<div class="form-group">
<div class="col-md-4">
<select id="product_categorie" name="active" class="form-control">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
28
</div>
</div>
<!-- File Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="filebutton">Image Upload of Item</label>
<div class="col-md-4">
<input id="filebutton" name="photo" class="input-file" type="file">
</div>
</div>
<!-- Button -->
<div class="form-group">
<div class="col-md-4">
<button class="button" name="singlebutton" class="btn btn-primary">Save</button>
</div>
</div>
</fieldset>
</form>
</div>
</body>
<br><br><br>
</body>
</html>
Adminhome.jsp
<%@include file="adminHeader.jsp" %>
<%@include file="../footer.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>welcome</title>
<style>
h1
{
color:red;
text-align: center;
font-size: 100px;
}</style>
</head>
<body>
<h1>welcome admin!</h1>
</body>
</html>
29
Chapter 6: CONCLUSION
This project made by the handwork of our group and is a small effort in the
development of larger programs, and it involves limited aspects which are needed in
day to day hostel operation.
The software development although is a very difficult task but it can be carried out
successfully with the effort of our work. After the completion of this project we learnt
different things about software and its development. I also learnt to work in a group and
realize its importance.
30
Chapter 7: FUTURE SCOPE
With the increasing demand for food fish, the decline in capture fisheries production, and the
exhaustion of mangrove areas available for fishpond expansion, aquaculture in the Philippines is
heading towards intensification and the utilization of coastal waters for cage and pen fish
farming. This shift from low density to high density culture is consequently leading to an
unprecedented rise in the demand for feeds more than that of fertilizers.
At present the supply of the majority of locally available feedstuffs is already limited and the
seasonal availability and occurrence of natural calamities compound this problem. This situation
is likely to worsen with the rapid growth of the poultry and livestock farming sectors. Unless
production of local feedstuffs is increased and its utilization made more efficient, the growth of
fish culture, as well as that of land-based animal farming, are bound to be more and more
dependent upon the use of imported raw materials. Aquaculture specifically requires high protein
feed ingredients, such as fish meal and soybean oil meal, which have very little domestic
production. The aquaculture industry must work towards ways and means of efficiently
managing and utilizing local feedstuff resources, such as by improving processing methods,
increasing digestibility and nutritional value, extending shelf life and freshness, and by
developing formulations specific for each species, culture system, and culture environment.
Efficiency in feed utilization can also be better attained by ensuring hydrostability and by
employing appropriate feeding methods and strategies. The streamlining of marketing channels
and the development of non-conventional feedstuffs that are economically and commercially
viable to mass produce, will be particularly valuable for the feed industry.
31
Chapter 8: REFRENCES
On Internet:
https://studylib.net/doc/25190791/a-project-report-on-hostel-management-sy
www.httsps://oraclecom/java/technologies/java-se-glance-html
https://netbeans.apache.org//about/history.html?print=yes
www.w3schools.com
www.javatpoint.com
https://www.licious.in/seafood
http://www.fishmart.co.in/
https://www.freshtohome.com/
32