Descriptioncreate a web application for sheridan restaurant

Assignment Help JAVA Programming
Reference no: EM13376162

Description:

Create a web application for Sheridan Restaurant Reviews that contains the following functionality:

• Display a table of all restaurants based on the city entered by the user and whether the restaurants allow take-out orders or not

• Allow the user to update the ratings of a restaurant

1. Database - Restaurants.sql

The provided script does the following:

- Creates a new database called RestaurantReviews
- Creates a new table called Review and populates it with some records:

o ReviewId - An auto-incremented value that represents this table's primary key
o Restaurant - The name of the restaurant
o Food - The restaurant's score for food
o Service - The restaurant's score for service
o Price - The restaurant's score for menu prices
o Location - The city where the restaurant is located
o Cuisine - The type of cuisine served at the restaurant
o TakeOut - A true value indicates that the restaurant allows for take-out orders

2. Your Web Application

a) Make sure the DBConnection and MySQL JDBC Driver libraries are imported in your new project.

b) Modify index.html by adding two HTML forms - one for each function within the application.

60_Create a web application for Sheridan Restaurant.png

• Each form should send a request to an appropriate servlet
• The Price Rating field when updating a restaurant review should be a dropdown list with the values 1, 2, 3, 4, 5 in that order

c) Your database configuration must be stored as a series of context-initialization parameters.

d) Your solution must have a ServletContextListener that does the following when the application loads:

• Get the database configuration from the ServletContext
• Construct a new DBConnection object based on the database configuration
• Store the DBConnection object as a ServletContext attribute

e) Create a JavaBean that maps with the Review table of the database

f) Create a DAO class that contains methods that do the following:

• Get restaurants by location. This method should have parameters for a Connection object, the city, and whether to return restaurants that allow take-out orders. Your results should be ordered by descending food rating, then descending service rating.

The method should return a list of Review beans.

• Update a restaurant review. This method should have parameters for a Connection object and the values required to update a restaurant review's ratings. The method should return true if the new review was successfully updated, false otherwise.

g) Create a servlet that handles requests to get a list of restaurants by location

• The request should be forwarded to a JSP which will display a table of those restaurants

h) Create a servlet that handles requests to update a restaurant's review

• Forward the request to index.html if the restaurant review was successfully updated
• Forward the request to an error page if the restaurant review was not updated

i) Create a JSP that displays a table of all restaurants that match the selected criteria. Below is the sample page if the user wanted to view all restaurants in Brampton that allow take-out:

22_Create a web application for Sheridan Restaurant1.png

 

Reference no: EM13376162

Questions Cloud

Question 1figure 1 shows a large crawler crane in operation : question 1figure 1 shows a large crawler crane in operation in a construction sitefigure 1nbspnbsp crawler
Business research report proposal final research proposal : business research report proposal final research proposal the final research proposal will consist of the following
You are security analysis specialist and complete this : you are security analysis specialist and complete this assignment to pass the current module of current training
1your assignment task is to write a method and a discussion : 1.your assignment task is to write a method and a discussion section as part of a research report.2.you are provided
Descriptioncreate a web application for sheridan restaurant : descriptioncreate a web application for sheridan restaurant reviews that contains the following functionalitybull
Essaynbspthis essay has a word length of 2500 words : essaynbspthis essay has a word length of 2500 words. students can choose between the following two topicsa define
Make a form tool for lathe for making a convex groove of 3 : make a form tool for lathe for making a convex groove of 3 mm radius. tool material will be tungsten carbide. know the
Write an essay on your communication in your teambriefly : write an essay on your communication in your team.briefly introduce yourself and your team members by name.analyse each
Starting from resta 10 cm diameter compact disk takes 30 s : starting from resta 10 cm diameter compact disk takes 3.0 s to reach its operating angular velocity of 2200 rpm. assume

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a client program

Implement a client program with a main method to demonstrate the evolution of the sales tax rates in the 50 US states over the last 10 years. Declare a two-dimensional array of values representing the sales tax rates. Dimension 1 represents the st..

  Java application which creates bank records

Write down a java application which creates 10000 bank records and the allow user ti enter a balance and customer account info. using a an account number.

  Design a single class that expresses the commonality

Design a single class that expresses the commonality of these concepts.

  Java program for line item application

This exercise explains you the process of testing and enhancing Line Item application. Open LineItemApp, Validator, Product, LineItem, and ProductDB classes that are in the c:java1.6ch06LineItem directory and review this code.

  Considered to be an improved version

Part (c) is considered to be an improved version of Part (b). You may use an array (2-dimessional) to store some values that has been computed during the run so that when making recursive calls the program does not compute certain values over and ..

  A java program that will prompt the user to input a file

Write a Java program that will prompt the user to input a file (document) in order to count the frequency of each word. This program will display the frequency of each word sorted alphabetically or by frequency (depending on the preference of the use..

  Eclipse or netbeans environments

As recommendation, you can try to use Eclipse or NetBeans environments that are used also for other courses as: Introduction in Java programming and Intermediate programming.

  Pronouns, and prepositions

Type addKeyword(): for each word on each page, add to a (keyword, URLs) list or dictionary, excluding articles, pronouns, and prepositions. For example:

  Java problem - g queue

A queue is an ordered collection of items in which the removal of items is restricted to the FIFO ( rst in rst out) principle.

  Write a java that reads from the user annual income

Write a Java program (name it IncomeTax) that reads from the user annual income as  integer value.

  Part a -code comprehensionusing the uncommented sample code

part a -code comprehensionusing the uncommented sample code has been provided in moodleanswer the following questions1.

  Compute the correct number of square feet needed

The Carpet House owner wants to put a carpet calculator on his website so that visitors can estimate the amount of carpet they will need to purchase.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd