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

  Solve the currently very un-pc cigarette smokers problem

Write solution to solve the currently very un-PC"cigarette smokers problem" in java using Java threads, and monitors (using the "synchronized" keyword) (If it bothers your PC sensibilities, think of it at the Pot-smokers problem and then it is all pr..

  Descriptionyou are to write a program that determines the

descriptionyou are to write a program that determines the day of the week for new years day in the year 3000. to do

  A program that reads a four-digit number from the keyboard

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  Displays every perfect number from 1 through 1000

Write an application that displays every perfect number from 1 through 1000. A perfect number is one that equals the sum of all the numbers that divide evenly into it.

  The game of pig

Write a program that allows a single player to practice the game (that is, there will be no opponent, just a single player). Play 5 turns in the game to get a total score for the player. Refer to the sample output below for a detailed example.

  Simple java application that uses the string

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  Develop view for order number and order total in file

Develop a view named OrdTot. It comprises of order number and order total for each order currently on file. Order total is the sum of number ordered.

  A regular polygon is an n-sided polygon

A regular polygon is an n-sided polygon in which all sides are of the same length and all angles have the same degree(i.e the polygon is both equilateral and equiangular).

  Tic-tac-toe game assignment

Assignment 1(Java): Tic-Tac-Toe Game (Assignment 1 is attached),  Use the concepts and scenario from Assignment 1 and continue with the tic-tac-toe game design and development.  Section 1: Java Program File, The following method, numPaths, is suppos..

  Objective to learn the use of comments and basic math

objective to learn the use of comments and basic math operators.create a new folder called assign21 under

  A program that reads a four-digit number from the keyb

Write a program that reads a four-digit number from the keyboard as a string and then converts it into decimal. For example, if the input is 1100, the output should be 12. Hint: Break the string into characters and then convert each character to a va..

  Display student details and classes in applet

Display student details and classes they have enrolled in Applet. The Applet should have following features. Update and View.

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