Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Chapter 1: INTRODUCTION
1.1 Background:
Our website deals with Organic Farming i.e. growing food organically without the usage of any harmful
pesticides, weedicides and other chemically produced insecticides, moreover it is concerned with the
health and better nurturing capabilities of food and its intake among the present generation.
India is bestowed with lot of potential to produce all varieties of organic products due to its various
agro climatic regions. An inherited tradition of organic farming in several states of the country is an
added advantage. This holds the promise for organic producers to tap the market which is steadily
growing (15 to 25 %) in the domestic market related to the export market.
1.2 Objectives:
This project is intended to help the people or farmers keen to do Organic farming at their respective
home or garden moreover this app/website will provide them organic seeds and vegetables at wholesale
price.
1
ORGANIC FARMING AND PRODUCT MARKET
1.3.2 Scope:
• There are four basic users – General users, Registered Members, Experts, Administrator.
• The users through the processes of account creation and registration can get the privileges by
becoming our Registered Member.
• The users who are not registered can also seek advice from our Experts.
• The system will allow customers to The Rational Unified Process brings together elements
from all of the generic process models, supports iteration and illustrates good practice in
specification and design.
• The system will allow customers to browse, search, select, and even adding of key advices and
items in their cart.
• Our website will not target any particular mob instead it will be fruitfull to every generation as
its target is to bring out the new era of healthy food consumption and to lower down the
problems arising because of adulterated food and habits.
• Other than information and knowledge provided about the Organic Farming and its solutions,
user can also use the Chat facility, Guidance provided by the experts, Map facility to track
offline stores.
• Moreover the user can buy organic foods, medicines, seeds, crops, etx by using add to cart and
Buy Now option, moreover a review and ratting section is also being provided to the user.
• Not User Friendly: The existing websites and application available over the internet is not at all user
friendly and are complex in its execution.
• Difficulty in data fetching and gathering: People might generally think that it’s a cumbersome and
tedious task to implement.
2
ORGANIC FARMING AND PRODUCT MARKET
• Extraneous Cost factors: Present website charges additional costs and are full of inappropriate ads as
well.
1.3.3 Applicability:
At present there is a vivid scope to excel in organic farming field, moreover due to lack of
knowledge among the peoples, they need a helpful guidance under which they can perform organic
farming activities and can reduce the consumption of adulterated and chemical contained junk foods
and start their lives with natural and healthy foods and nurture their health in more effective way.
So, As there is a need of organic farming because of Food Adulteration and consumption of Junk
food results in :-
• Health Problems
• No energy, more Fats
• Lack of essential nutrients, vitamins
• Degradation in Living standards
Other than this information and knowledge about organic farming, user can buy online organic
foods, seeds, medicines, and many other products and that to at a wholesale prices.
1.4 Achievements:
Basically, our website tends to reduce the consumption of junk or chemically produced food and try to
establish a new habit of organically produced food which results into a better health and a brighter
future among the present era. Moreover our goal is to eliminate the root causes of many of the presently
spreaded diseases by the introduction of our organic products and medicines.
3
ORGANIC FARMING AND PRODUCT MARKET
• Requirement Gathering and Analysis – All the requirements of the client are interviewed and
well analyzed through the survey and estimating the functionality of the existing system.
• Design – The design model of online item sales with mobile SMS has been defined in detail in
this document in an implementation specific fashion so that the construction phase (of waterfall
model applied) can accomplish its task effectively. The Architectural Design gives the overall
view of the system; User interface Design describes how the end user will be able to see the
system.
• Testing – Software testing, depending on the testing method employed, can be implemented at
any time in the development process. A primary purpose of testing is to detect software failures
so that defects may be discovered and corrected. In Digital Parking System, black box and
white-box testing is used.
4
ORGANIC FARMING AND PRODUCT MARKET
• Release and Maintenance - After the system is tested it is ready for release. All the measure
will be taken to maintain the software in the market.
In this report the reader will be provided firstly the need and objective of our website, following the
technological survey which includes the behind ideology & the need of the usage of the particular
technology for implementation of particular thing. After that the reader will have complete overview
of the requirement and analysis which portraits the problem definition which includes the proper
requirement specification followed by a governed planning and scheduling with software and hardware
requirements on our project and lastly the preliminary product description explaining about the
infrastructure or usage of our website among the people and also provides the advantages of our website
followed by conceptual models.
5
ORGANIC FARMING AND PRODUCT MARKET
Technology used:
Tools used:
6
ORGANIC FARMING AND PRODUCT MARKET
1. Java:
Java is an object-oriented programming language developed by Sun Microsystems a company best
known for its high end. UNIX platforms workstations. Java language was designed to be small,
simple, and portable operating systems, both at the source and at the binary level, which means that
Java programs (applet and application) can run on any machine that has the Java virtual machine
(JVM).
1.1 JSP:
JavaServer Pages (JSP) is a technology for developing web pages that support dynamic content which
helps developers insert java code in HTML pages by making use of special JSP tags, most of which
start with <% and end with %>.A JavaServer Pages component is a type of Java servlet that is designed
to fulfill the role of a user interface for a Java web application. Web developers write JSPs as text files
that combine
HTML or XHTML code, XML elements, and embedded JSP actions and commands.
In the presentation layer most code is HTML/JS. On the other hand, business logic is in most part
Java code, so in that case it's better to use Servlets or POJOs (plain, old Java objects). EDIT: there's
no performance difference since JSP code, as such, is never run, it's converted to a servlet.
1.2 JavaScript:
JavaScript is (often) for the dynamic or reactive aspects of your webpage or web app: animations,
form validation, ajax, and so forth. You can use JavaScript to make your pages more interactive. You
can check stuff before sending it server and save time for the user.
7
ORGANIC FARMING AND PRODUCT MARKET
The main use of JavaScript is that it allows you to make things happen in the user's browser without
sending messages back and forth to the server. There are a variety of reasons why you might want to
do this.
For example, sending a message to the server and getting a reply is a relatively long process: it is
almost always a noticable time lag, and can take many seconds. Doing something directly in the
browser can be much faster. So if, for example, you want to give the user an "invalid data" message
of some sort, it can be much faster if it comes from JavaScript.
2. HTML:
Browsers do not display the HTML tags, but use them to interpret the content of the page. HTML can
embed programs written in a scripting language such as JavaScript which affect the behavior and
content of web pages. Inclusion of CSS defines the look and layout of content.
3. CSS:
Use CSS to define styles for your documents, including the design, layout and variations in display
for different devices and screen sizes. You can place your CSSin the <head> of a document with an
embedded style sheet, or attach a separate file that defines your styles with an external style sheet
5. MySQL:
MySQL is a relational database system. MySQL is faster, more reliable, and cheaper or simply better
than any other database system (including commercial systems such as Oracle and DB2).
8
ORGANIC FARMING AND PRODUCT MARKET
Supplementary Requirement:
9
ORGANIC FARMING AND PRODUCT MARKET
Existing System -
• Manual Registration
• Discussion Forum
Proposed System -
10
ORGANIC FARMING AND PRODUCT MARKET
Constraints:
Below are the gantt chart and the P.E.R.T. diagrams related to our planning schedule and
procedure on day-to-day basis and the task is being divided into the group members as well for
simplicity.
11
ORGANIC FARMING AND PRODUCT MARKET
12
ORGANIC FARMING AND PRODUCT MARKET
Hardware Requirement
CLIENT SIDE
SERVER SIDE
Software Requirement –
13
ORGANIC FARMING AND PRODUCT MARKET
So, the basic objective behind this project is intended to help the people or farmers keen to do
Organic farming at their respective home or garden moreover this app/website will provide them
organic seeds, vegetables and medicines at wholesale price.
Proposed System –
• A list of items will be retrieved to the user’s screen by matching the search
keyword from the items present in our database.
• Other than this, user can get the information and knowledge about organic
farming from the home page by watching videos, reading blogs, chat with
experts, etc.
14
ORGANIC FARMING AND PRODUCT MARKET
15
ORGANIC FARMING AND PRODUCT MARKET
• Use cases are designed for object oriented software development; these are focused on the
user’s need from the system.
• This approach is more powerful as compared to traditional approach.
• It uses a combination of text and pictures in order to improve the understanding of
requirements.
• The use case describes ‘what of a system and not how of a system’.
• They only give the functional view of the system.
• General Users-These are unregistered users and can search for the items and seek some piece
of advice by the Experts.
• Registered Member - Users that exhibits registration, can search the items from Item-list and
16
ORGANIC FARMING AND PRODUCT MARKET
Administrator:-
17
ORGANIC FARMING AND PRODUCT MARKET
18
ORGANIC FARMING AND PRODUCT MARKET
19
USEFARMING
ORGANIC CASE AND PRODUCT MARKET DESCRIPTION
Sign in The user has to Sign-in in order to start begin his work.
View Profile Every registered user has his/her own profile containing personal details.
Update Profile The user has the option to update his/her own profile.
File Complaint The user can file any kind of complaint.
Withdraw Complaint The user has option to withdraw his/her complaint
Create thread The user can create a new thread in a discussion forum.
View thread The user can view already created thread in a discussion forum.
Create new post The user can create a new post in a newly created or already present thread.
Send Query The user can send valid queries to Experts.
Receive mail The user can receive mail
Search The user can search for a particular item in website by entering the keyword.
View help The user will view the help.
USE-CASE DESCRIPTION
R Reply Query The Expert will reply to the queries fired by the Users.
20
ORGANIC FARMING AND PRODUCT MARKET
ARCHITECTURE DESIGN
Registration UI Registration UI
Admin
/Registered
Search UI Search UI member
Complaint UI Complaint UI
Complain
t
Discussion Discussion
Forum
Forum Forum
Expert UI Expert UI
Expert
Feedback UI Feedback UI
Feedback
k
Fig: Architectural Design Of our Website
21
ORGANIC FARMING AND PRODUCT MARKET
ACTIVITY DIAGRAM
• Activity diagrams are graphical representations of workflows of stepwise activities and actions
with support for choice, iteration and concurrency.
• In the Unified Modeling Language, activity diagrams can be used to describe the business and
operational step-by-step workflows of components in a system.
• An activity diagram shows the overall flow of control.
• Initially user fills the details present in registration form. As user click on submit button
verification of username takes place.
• If user name is already present then that user is again taken back for changing username.
22
ORGANIC FARMING AND PRODUCT MARKET
• If user is not present then it checks for password and remaining mandatory fields. If any of the
mandatory field is empty or filled incorrectly, user is told to enter the correct values.
• Once all these verifications are succeeded, then the registration is done.
23
ORGANIC FARMING AND PRODUCT MARKET
24
ORGANIC FARMING AND PRODUCT MARKET
25
ORGANIC FARMING AND PRODUCT MARKET
26
ORGANIC FARMING AND PRODUCT MARKET
• All the posts are displayed to the system for the user from which user can select a thread
from the recent post and can reply for the same or the user can also create the new post.The
user can directly create a new thread and thereafter he can create a new a new post.
• The particular topic can be searched by the user and thus he can select a thread from the result
and a new post can be created.
27
ORGANIC FARMING AND PRODUCT MARKET
28
ORGANIC FARMING AND PRODUCT MARKET
• The member sends the query about Organic Farming to the Admin.
• Admin validates the query and sends it to the Expert.
• Expert resolves it and send back the reply to the authenticated user.
• It is the process of producing a detail data model of a database.This logical data model contains all
the needed logical and physical parameters.
29
ORGANIC FARMING AND PRODUCT MARKET
SEQUENCE DIAGRAM:-
User Login -
30
ORGANIC FARMING AND PRODUCT MARKET
Placing an Order –
31
ORGANIC FARMING AND PRODUCT MARKET
32
ORGANIC FARMING AND PRODUCT MARKET
33
ORGANIC FARMING AND PRODUCT MARKET
34
ORGANIC FARMING AND PRODUCT MARKET
DATABASE DESIGN
35
ORGANIC FARMING AND PRODUCT MARKET
ER DIAGRAM
36
ORGANIC FARMING AND PRODUCT MARKET
37
ORGANIC FARMING AND PRODUCT MARKET
38
ORGANIC FARMING AND PRODUCT MARKET
39
ORGANIC FARMING AND PRODUCT MARKET
• Software design is actually a multistep process that focuses on four distinct attributes of a
program: data structure, software architecture, Interface representations, and procedural
detail. The design process translates requirements into a representation of the software that
can be assessed for quality before coding begins. Like requirements, the design is
documented and becomes and becomes a part of the software configuration.
• Software design is the process by which an agent creates a specification of a software
artifact, intended to accomplish goals, using a set of primitive components and subject to
constraints. Software design may refer to either "all the activities involved in
conceptualizing, framing, implementing, commissioning, and ultimately modifying
complex systems" or "the activity following requirements specification and before
programming, as in a stylized software engineering process."
• Software Architecture - It refers to the overall structure of the software and the ways in
which that structure provides conceptual integrity for a system. Good software
40
ORGANIC FARMING AND PRODUCT MARKET
architecture will yield a good return on investment with respect to the desired outcome of
the project, e.g. in terms of performance, quality, schedule and cost.
• Structural Partitioning - The program structure can be divided both horizontally and
vertically. Horizontal partitions define separate branches of modular hierarchy for each
major program function. Vertical partitioning suggests that control and work should be
distributed top down in the program structure.
It is important to distinguish between the UML model and the set of diagrams of a
system. A diagram is a partial graphic representation of a system's model. The set of
diagrams need not completely cover the model and deleting a diagram does not change
the model. The model may also contain documentation that drives the model elements
and diagrams (such as written use cases). UML diagrams represent two different views of
a system model:
• Static (or structural) view: emphasizes the static structure of the system using
objects, attributes, operations and relationships. The structural view includes class
diagrams and composite structure diagrams.
41
ORGANIC FARMING AND PRODUCT MARKET
• Dynamic (or behavioral) view: emphasizes the dynamic behavior of the system by
showing collaborations among objects and changes to the internal states of
objects. This view includes sequence diagrams, activity diagrams and state
machine diagrams.
Functionality : The above login module is basically made to request user to enter his credentials
so that he can redirect himself to the Home page and continue shopping then after.
42
ORGANIC FARMING AND PRODUCT MARKET
Functionality : Above is the view of home page through which user can swirl to different pages
in order to get the information about organic products and can shop for the same.
Functionality : The above page is intended to help user to shop his desired product and add the
same into the cart to proceed further, which will redirect user to the final checkout page.
43
ORGANIC FARMING AND PRODUCT MARKET
Functionality : The above page will redirect the user to bank page.
(1) (2)
44
ORGANIC FARMING AND PRODUCT MARKET
(3) (4)
(5)
45
ORGANIC FARMING AND PRODUCT MARKET
(6)
Functionality : the above pages shows the flow of money from customers bank account to our
website’s bank account.
Other modules includes information modules, which includes the information about our seeds,
fruits, vegetables in the form of clickable pictures. There are some more modules namely,
feedback and complaint modules.
Data which is being processed in our website, is stored in our database and a proper retrieval of
the data is done through database connectivity, Other than this we have applied security assets
too while the user is registering onto our website or entering his important credentials which
incudes a CAPTCHA code verification for identifying a robot ,proper validation and verification
of data is also done from our database, secured banking process through instamojo.com api link.
46
ORGANIC FARMING AND PRODUCT MARKET
Logic diagrams are used to represents the flow of information or data over the system which
include Flow charts, process diagram etc.
47
ORGANIC FARMING AND PRODUCT MARKET
Flow Chart :
48
ORGANIC FARMING AND PRODUCT MARKET
4.5.2 Data Structures: Basically, primitive data structures are used such as int, float,
double , etx and some non-primitive data structures such as arrays are also being used.
4.5.3 Algorithms Design: Since, this project is a shopping site which also provide a
platform where user can learn how to produce organic seeds, we have used a normal
algorithm explained below:
I) Login algorithm
Step 5) User gets redirected to the banking page by clicking on check out.
49
ORGANIC FARMING AND PRODUCT MARKET
50
ORGANIC FARMING AND PRODUCT MARKET
51
ORGANIC FARMING AND PRODUCT MARKET
52
ORGANIC FARMING AND PRODUCT MARKET
53
ORGANIC FARMING AND PRODUCT MARKET
5) Information page:
1) This website is prepared in Java which is known for its security management. Java created
websites has no access to the other parts of system and memory etc. It has access to only
those memory areas which is allocated to the system. Thus it is one way to ensure security.
It has no threat to the network and its resources.
2) Proper client side Validations and server side Verifications.
3) CAPCHA code in Registration form for robot detection.
4) Safe and secured banking from instamojo.com api
5) Secure Programming : There is a strict transparency provided between layers which
enhances the security. Tasks of a single layer do not interfere the tasks of other layer. One
layer will only provide the service to other layer and nothing else.
54
ORGANIC FARMING AND PRODUCT MARKET
1. Verify that user is able to navigate through all the products across different categories
2. Verify that all the links and banners are redirecting to correct product/category pages and
none of the links arr broken
3. Verify that the company logo is clearly visible
4. Verify that all the text - product, category name, price and product description are clearly
visible
5. Verify that all the images - product and banner are clearly visible
1. Verify that on the product page, user can select the desired attribute of the product.
2. Verify that user can add to cart one or more products
3. Verify that user can buy products added to cart after signing in to the application (or as per
the functionality of the website)
4. Verify that user can successfully buy more than one products that were added to his/her
cart
5. Verify that the limit to the number of products a user can by is working correctly by
displaying error message and preventing user from buying more than the limit
6. Verify that the delivery can be declined of for the places where shipping is not available
7. Verify that the different pre-paid methods of payments are working fine
1. Verify that all the specified fields are present on the registration page.
2. Verify that the required/mandatory fields are marked with * against the field.
3. Verify that for better user interface dropdowns, radio buttons and checkboxes etc fields are
displayed wherever possible instead of just textboxes.
4. Verify the page has both submit and cancel/reset buttons at the end.
55
ORGANIC FARMING AND PRODUCT MARKET
5. Verify that clicking submit button after entering all the required fields, submits the data to
the server.
6. Verify that clicking cancel/reset button after entering all the required fields, cancels the
submit request and resets all the fields.
7. Verify that whenever possible validation should take place at client side.
8. Verify that not filling the mandatory fields and clicking submit button will lead to
validation error.
9. Verify that not filling the optional fields and clicking submit button will still send data to
server without any validation error and Verify that after making a request to the server and
then sending the same request again with the same unique key will lead to server side
validation error.
56
ORGANIC FARMING AND PRODUCT MARKET
• The implementation approach used in this project is based on the above diagram, we have
simply divided into 3-tier layers, front end is differentiated from the back end via the
business layer.
• Servlets are called from the front end views for storing data persistently into our database
tables which uses the concepts of RDBMS.
• The Architecture could be established by following a 3-tier Layered approach.
• Our website would be developed on Layering architecture mainly 3 layers: -
• A database layer / data layer which consists the code of database connectivity and
operations, database would be accessed only through data layer and no other layer would
write a single line of code for database connectivity.
• A business layer: - which consists of interconnection between the presentation and the
database layer.
57
ORGANIC FARMING AND PRODUCT MARKET
• A presentation layer: - which consists the code for GUI designing and modeling and they
would connect with the business layer for further processing. Processing would be done at
business layer side.
• Object oriented Architecture: - we would develop our software by following the rules of
object oriented methodology
• The Benefits we achieve by using the Layered Architecture are numerous some of them
are as follows: -
• Maintainable: - It is easy to maintain a software developed in layers as in our case any
bug related to database would claim that the error is in data layer and not in business
layer and presentation layer.
• Robustness: - The layered approach makes the application easy to debug and hence more
resilient. Problems are handled at their source rather than travelling the whole way.
• Secure programing: - There is a strict transparency provided between layers which
enhances the security. Tasks of a single layer do not interfere the tasks of other layer. One
layer will only provide the service to other layer and nothing else.
58
ORGANIC FARMING AND PRODUCT MARKET
city=document.getElementById("city").value;
state=document.getElementById("state").value;
ree = document.getElementById("number").value;
uee =document.getElementById("userI").value;
if(check=document.getElementById("check").checked!=true)
{
alert("Please tick the checbox if you agree with the terms and conitions");
}
//validation needs to be done
re =/[!@#$%^&*()_+={}|\<>?;:",/']/;
if(re.test(p))
{
alert("Pin code cannot contain alphabets");
document.getElementById("pin").focus().select();
error="huh";
return error;
}
}
var phoneno = /^\d{6}$/;
if(p.match(phoneno))
{
return true;
}
else
{
alert("Invalid Pin no");
return false;
}
}
59
ORGANIC FARMING AND PRODUCT MARKET
function passvalidation(password)
{
if(password=="")
{
alert("Password cannot be blank");
document.getElementById("password").focus().select();
error="huh";
return error;
}
else
{
if((password.length>16)||(password.length<8))
{
alert("Password must contain atleast 8 characters and atmost 16”);
document.getElementById("password").focus().select();
error="huh";
return error;
}
re = /[0-9]/;
if(!re.test(password))
{
alert("Error: password must contain at least one number (0-9)!");
document.getElementById("password").focus().select();
error="huh";
return error;
}
re = /[a-z]/;
if(!re.test(password))
{
alert("Error: password must contain at least one lowercase letter (a-z)!");
document.getElementById("password").focus().select();
60
ORGANIC FARMING AND PRODUCT MARKET
error="huh";
return error; }
re = /[A-Z]/;
if(!re.test(password))
{
alert("Error: password must contain at least one uppercase letter (A-Z)!");
document.getElementById("password").focus().select();
error="huh";
return error;
}
re =/[!@#$%^&*()_+={}|\<>?;:",/']/;
if(!re.test(password))
{
alert("Error: password must contain at least one special character)!");
document.getElementById("password").focus().select();
error="huh";
return error;
}
}
}
61
ORGANIC FARMING AND PRODUCT MARKET
OUTPUT :
Code Efficiency : All the validation are implemented in the less line of codes which ensures lesser
complexity and higher efficiency.
62
ORGANIC FARMING AND PRODUCT MARKET
OUTPUT :
Code Efficiency: The above code is written in least no. of lines and producing a randomly
generated CAPCHA code, hence its most efficient in its working .
63
ORGANIC FARMING AND PRODUCT MARKET
64
ORGANIC FARMING AND PRODUCT MARKET
OUTPUT :
Code Efficiency : The above code is quite efficient in itself as its written in least line of code and
execution time is also faster, basically this login.html is included in the main home page like this:
65
ORGANIC FARMING AND PRODUCT MARKET
66
ORGANIC FARMING AND PRODUCT MARKET
5) Buying Pages :
function test()
{
//a function to be called for total amount to be paid by the customer
var one=document.getElementById("one").value;
var two=document.getElementById("two").value;
var three=document.getElementById("three").value;
var four=document.getElementById("four").value;
var five=document.getElementById("five").value;
var six=document.getElementById("six").value;
var seven=document.getElementById("seven").value;
var eight=document.getElementById("eight").value;
sum=+(one*110) + +(two*45) + +(three*60) + +(90*four) + +(40*five) +
+(2500*six) + +(3500*seven) + +(5000*eight);
//calculates total amount
document.getElementById("hiddenvalue").value = sum;
var r=confirm("Total cost "+sum);
if(r==true)
{
alert("Thank you for your order.. ");
return true;
}
else
{
return false;
}
}
67
ORGANIC FARMING AND PRODUCT MARKET
OUTPUT :
68
ORGANIC FARMING AND PRODUCT MARKET
Code Efficiency : The above code is running well in least possible Line of code and execution
time is also less, hence this code is efficient enough.
Software Testing has different goals and objectives. The major objectives of Software testing are as
follows:
Finding defects which may get created by the programmer while developing the software.
• To prevent defects.
• To make sure that the end result meets the business and user requirements.
• To ensure that it satisfies the BRS that is Business Requirement Specification and SRS that is
System Requirement Specifications.
• Software testing helps in finalizing the software application or product against business
and user requirements. It is very important to have good test coverage in order to test the
software application completely and make it sure that it’s performing well and as per the
specifications.
• While determining the test coverage the test cases should be designed well with maximum
possibilities of finding the errors or bugs. The test cases should be very effective. This objective
can be measured by the number of defects reported per test cases. Higher the number of the
defects reported the more effective are the test cases.
• Testing and debugging are different activities, but debugging must be accommodating in the
testing strategy.
69
ORGANIC FARMING AND PRODUCT MARKET
• A strategy for the software testing must be accommodate low level tests that necessary to verify
that a small source code segment is performing correctly according to the customers
requirement and that of developers expectations.
In our project unit testing on the registration page is done by checking all the validations:
70
ORGANIC FARMING AND PRODUCT MARKET
71
ORGANIC FARMING AND PRODUCT MARKET
72
ORGANIC FARMING AND PRODUCT MARKET
II) LoginServ.java:
try
name=request.getParameter("nm");
emailid=request.getParameter("mail");
contact=request.getParameter("contact");
address=request.getParameter("address");
city=request.getParameter("city");
password=request.getParameter("pass");
state=request.getParameter("state");
pincode=request.getParameter("pin");
country=request.getParameter("country");
ifield=request.getParameter("sg");
veggies=request.getParameter("t1");
userid=request.getParameter("uid");
if(name!=null && emailid!=null && contact!=null && address!=null && city!=null &
veggies!=null)
stat=con.prepareStatement(sql);
73
ORGANIC FARMING AND PRODUCT MARKET
stat.setString(1, name);
stat.setString(2,emailid );
stat.setString(3,contact);
stat.setString(4,address);
stat.setString(5,city );
stat.setString(6,state);
stat.setString(7,pincode );
stat.setString(8,country);
stat.setString(9,ifield);
stat.setString(10,veggies );
stat.setString(11,userid);
stat.setString(12,password );
if(stat.executeUpdate()>0)
out.println("<br>");
out.println("<br>");
out.println("<br>");
out.println("<br>");
out.println("<br>");
Details</center></font>");
74
ORGANIC FARMING AND PRODUCT MARKET
out.println("<br>");
Page</center></font></a>");
out.println("</center>");
else
out.print(x);
con.close();
catch(Exception e)
e.printStackTrace();
catch(Exception e)
e.printStackTrace();
75
ORGANIC FARMING AND PRODUCT MARKET
IOException
processRequest(request, response);
IOException
processRequest(request, response);
1. Usage of obsolete methods, which we have replaced with the current java methods
2. Null Pointer Exceptions which we have dealt with proper session handling and variable
declaration in the right form and right direction of use.
3. Improper linking b/w pages , which we have dealt with calling servlets correctly through
the form tags in the jsp’s
4. Some general human errors also being detected has been corrected by proper indentation
among codes and using generalized methods in place of specialized ones.
76
ORGANIC FARMING AND PRODUCT MARKET
All the above bugs/exceptions are taken cared of in the correct direction and lastly improved our
website as a whole in terms of execution time, deployment time, lesser LOC, etx.
77
ORGANIC FARMING AND PRODUCT MARKET
In this report, we have thoroughly gone through the concepts of software engineering. We have
researched for all models in software development. We have implemented the project with incremental
model. This is because the project is based on requirements. Therefore we have complemented the
requirement analysis and designing phase. All the aspects are covered in this report.
The designing phase consists of all the software design paradigms. We have followed the object
oriented approach and it seems to be well suited accordingly to the project’s requirement. The diagrams
are specifically designed and analysed so that we can cover the basic set of the requirements and hence
we can move them on to the development phase.
So the work on design has been accomplished. The other aspects like the security and the data flow
are also maintained .The database is consistent according to the requirements and will be improved
periodically.
1. Verify that user is able to navigate through all the products across different categories
2. Verify that all the links and banners are redirecting to correct product/category pages and
none of the links are broken.
3. Verify that the company logo is clearly visible
4. Verify that all the text - product, category name, price and product description are clearly
visible
5. Verify that all the images - product and banner are clearly visible
The above test cases are resolved quite efficiently by reviewing each and every module accurately.
1. Verify that on the product page, user can select the desired attribute of the product.
78
ORGANIC FARMING AND PRODUCT MARKET
The above test cases are also resolved quite efficiently by checking each and every module till its
depth and verifying each point through the test cases being made.
The same is examined through the screenshots of our website, which are given below:
In above Screenshot, the customer enters 2 as number of Composter to be purchased, and click to
the ADD TO CART button which will result in below screenshot:
79
ORGANIC FARMING AND PRODUCT MARKET
1. Verify that all the specified fields are present on the registration page.
2. Verify that the required/mandatory fields are marked with * against the field.
3. Verify that for better user interface dropdowns, radio buttons and checkboxes etc fields are
displayed wherever possible instead of just textboxes.
4. Verify the page has both submit and cancel/reset buttons at the end.
5. Verify that clicking submit button after entering all the required fields, submits the data to
the server.
6. Verify that clicking cancel/reset button after entering all the required fields, cancels the
submit request and resets all the fields.
7. Verify that whenever possible validation should take place at client side.
8. Verify that not filling the mandatory fields and clicking submit button will lead to
validation error.
9. Verify that not filling the optional fields and clicking submit button will still send data to
server without any validation error.
10. Verify that after making a request to the server and then sending the same request again
with the same unique key will lead to server side validation error.
The above test cases are also resolved quite efficiently by checking each and every field in the
registration form and verifying each point through the test cases being made.
The same is examined through the screenshots of our website, which are given as:
80
ORGANIC FARMING AND PRODUCT MARKET
The above test cases are also resolved quite efficiently by checking each and every pages
accurately and verifying each point through the test cases being made.
The same is examined through the screenshots of our website, which are given as:
81
ORGANIC FARMING AND PRODUCT MARKET
Our website deals with Organic Farming i.e. growing food organically without the usage of any
harmful pesticides, weedicides and other chemically produced insecticides, moreover it is
concerned with the health and better nurturing capabilities of food and its intake among the present
generation.
82
ORGANIC FARMING AND PRODUCT MARKET
In this website a user can have some knowledge about how to grow organic seeds and at the same
time can have the knowledge of which fruit/vegetable is important as per his needs or bodily
demands.
We also supply organically produced foods and fruits to the schools, daycares , restaurants and
tiffin centers.
83
ORGANIC FARMING AND PRODUCT MARKET
The user can sign up and log in, in order to avail all the functionality and can there after buy
products from our website.
Proper safe and secure data flow and banking pages are developed hence there is no doubts in
having any security breach or data theft from our website.
84
ORGANIC FARMING AND PRODUCT MARKET
Chapter 7: CONCLUSION
7.1 Conclusion:
• In this report we have thoroughly gone through the concepts of software engineering. We have
researched for all models in software development. We have implemented the project with
incremental model. This is because the project is based on requirements. Therefore we have
complemented the requirement analysis and designing phase. All the aspects are covered in
this report.
• The designing phase consists of all the software design paradigms. We have followed the object
oriented approach and it seems to be well suited accordingly to the project’s requirement. The
diagrams are specifically designed and analysed so that we can cover the basic set of the
requirements and hence we can move them on to the development phase.
• So the work on design has been accomplished. The other aspects like the security and the data
flow are also maintained. The database will be consistent according to the requirements and
will be improved periodically.
• The basic aim of this project is to implement “Organic Farming and Product Market” which
overcomes the shortcomings of traditional way of purchasing the chemically oriented
vegetables which threatens the life of consumers. Even farmers can also convert their
normal farms to organic one.
• The development of the objectives is not just a final piece of code that gives satisfaction
but rather the process of creating the software that give a sense of fulfillment.
• Project implementation always leaves a possibility of many other ways of future
extensions, which can be worked upon on later stages of time by the same or other team to
enhance the subjective knowledge of the domain
• In conclusion, having access to this type of farming has truly revolutionized and influenced
our society as a whole. This use of technology has opened new doors and opportunities that
enable for a more healthy lifestyle today. Variety, Quick service and Reduced prices were
three significant ways in which development of an organic Farming is influencing people
from all over the world.
85
ORGANIC FARMING AND PRODUCT MARKET
86
ORGANIC FARMING AND PRODUCT MARKET
87
ORGANIC FARMING AND PRODUCT MARKET
REFERENCES :
Reference Books:
JAVA, the complete reference 7th Edition
Java Programming Language By Ken Arnold, James Gosling, David Holmes
https://www.tutorialspoint.com/java/
https://www.codecademy.com/learn/learn-sql
https://www.tutorialspoint.com/sql/
https://stackoverflow.com/
http://www.w3schools.in/java-tutorial/intro/
88
ORGANIC FARMING AND PRODUCT MARKET
GLOSSARY :
3-tier application
a program that is organized into three major parts: the workstation or presentation interface; the
business logic; and the database and related programming. Each of these is distributed to one or
more separate places on a network..
antipattern
a frequently used, but largely ineffective solution to a problem. The term was originally used to
refer to a design pattern gone wrong.
application integration
the process of bringing data or a function from one application program together with that of
another application program. Where these programs already exist, the process is sometimes
realized by using middleware.
application program
a program designed to perform a specific function directly for the user or, in some cases, for
another application program.
best practice
a technique or methodology that, through experience and research, has proven to reliably lead
to a desired result.
89
ORGANIC FARMING AND PRODUCT MARKET
bug
a coding error in a computer program.
build
a version of a program, usually pre-release, and identified by a build number, rather than by a
release number. As a verb, to build can mean either to write code or to put individual coded
components of a program together.
build tool
a programming utility that is used when building a new version of a program.
debugging
the process of locating and fixing or bypassing bugs (errors) in computer program code or the
engineering of a hardware device.
design pattern
a written document that describes a general solution to a design problem that recurs repeatedly
in many projects.
entity-relationship diagram
a data modeling technique that creates a graphical representation of the entities, and the
relationships between entities, within an information system.
functional programming
a style of programming that emphasizes the evaluation of expressions rather than the execution
of commands.
Gantt chart
a horizontal bar chart frequently used in project management that provides a graphical
illustration of a schedule that helps to plan, coordinate, and track specific tasks in a project.
risk management
the process of planning, organizing, leading, and controlling the activities of an organization in
order to minimize the effects of risk on an organization's capital and earnings.
runtime
when a program is running.
90
ORGANIC FARMING AND PRODUCT MARKET
service pack
an orderable or downloadable update to a customer's software that fixes existing problems and,
in some cases, delivers product enhancements.
structured programming
a subset of procedural programming that enforces a logical structure on the program being
written to make it more efficient and easier to understand and modify.
synchronize-and-stabilize
a systems development life cycle model in which teams work in parallel on individual
application modules, frequently synchronizing their code with that of other teams, and
debugging (stabilizing) code regularly throughout the development process.
user interface
everything designed into an information device with which a human being may interact --
including display screen, keyboard, mouse, light pen, the appearance of a desktop, illuminated
characters, help messages, and how an application program or a Web site invites interaction
and responds to it.
utility
a small program that provides an addition to the capabilities provided by the operating system.
91
ORGANIC FARMING AND PRODUCT MARKET
Web services
services made available from a business's Web server for Web users or other Web-connected programs.
92
ORGANIC FARMING AND PRODUCT MARKET
APPENDICES :
APPENDIX 1:
Source Code of Project (Welcome New_User Session) :
function test()
var one=document.getElementById("one").value;
var two=document.getElementById("two").value;
var three=document.getElementById("three").value;
var four=document.getElementById("four").value;
var five=document.getElementById("five").value;
var six=document.getElementById("six").value;
var seven=document.getElementById("seven").value;
var eight=document.getElementById("eight").value;
// String s3=String(sum);
//window.location.replace("proceedfurther.jsp?sum="+sum);
document.getElementById("hiddenvalue").value = sum;
if(r==true)
93
ORGANIC FARMING AND PRODUCT MARKET
alert("Thank you for your order..Please proceed further in order to avail your order");
return true;
else
return false;
<%
String s1=session.getAttribute("lol").toString();
%>
OUTPUT :
94