chaitra-1.pptx fake news detection using machine learning
Ajava oep
1. Page No: 1
Report on Open Ended Problem (OEP)
(Academic Year: 2016-2017)
Subject Code: 2160707
Subject Name:Advanced Java
Definition of OEP:
Create a shopping cart application using JSP technology to display all the items added in the cart.
Design the following pages: a. Home page containing the gallery of items in the form of thumbnails.
Below each thumbnail display the price and item code for that item. Also there must be a checkbox
displaying the text add to cart below the pries of each item. User can click on multiple checkboxes to
add items in his cart. At the bottom of the page there must be a submit button which when clicked, control
must be redirected to another page. b. Display page must add the entire selected item’s code and its price
in cookie and read those values from cookie to display those items that are selected from the previous
page. Also display the details of each item (i.e. item code and price) in a tabular form.
Submitted By:
1. Shah Maunil (140120107149)
2. Shah Naiya (140120107150)
3. Shah Prakshal (140120107151)
4. Shah Radha (140120107152)
5. Shah Ronak (140120107153)
Group_Id:CE_AJAVA_OEP_31
Branch: Computer Department
Division & Batch: 6th CE-C, C1
Guided By
Name of Faculty: Prof. MukeshParmar
Department: Computer Department
2. Page No: 2
INDEX
Sr No Title Page No
1 Definition 3
2 Implementation Code 3
3 Screenshot of Implementation 8
3. Page No: 3
1. Definition:
Although there are many uses for the session object, one of the most common uses
is to store items for online shopping. When you shop online, you usually browse around the Web
site, occasionally clicking an "Add to Shopping Cart" button to signal that you want to buy
something. When you are done, you click "Check Out" and fill out your billing information. The
session object is a logical place to keep shopping cart data. You can, of course, keep the data
on the client's browser, but it can get pretty cumbersome trying to keep up with the shopping cart
on the client when the user goes from page to page. You can also store the shopping cart in a
database and just keep enough data in the session to make it possible to retrieve the shopping cart
out of the database. If the database is fast enough and you have so many sessions active at one
time that you can't keep all the data in memory, the database might be a better solution. For most
applications, however, the session is the ideal place.
2. Implementation Code(Input Code):
a. Home page containing the gallery of items in the form of thumbnails. Below each
thumbnail display the price and item code for that item. Also there must be a checkbox
displaying the text add to cart below the pries of each item. User can click on multiple
checkboxes to add items in his cart. At the bottom of the page there must be a submit
button which when clicked, control must be redirected to another page
ModelList.jsp:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>www.tech-freaks.in - Model List</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p><font size="3" face="Verdana, Arial, Helvetica, sans-serif"><strong>Model
List</strong></font></p>
<a href="/ShoppingCart.jsp" mce_href="ShoppingCart.jsp">View Cart</a>
<p/>
<table width="75%" border="1">
<tr>
<td><formname="modelDetail1"method="POST"action="servlet/CartControll">
<font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Model:</strong>