Implement in the service class the methods for creating

Assignment Help Programming Languages
Reference no: EM133398481

Part I:

Web Application

1. Start by creating a web application based on a Dynamic Web Project.

2. Create a class that will represent the basic Log. The minimum attributes required include:

a. An ID

b. Title

c. The Log Content

d. A Timestamp of creation

3. This class can be based on the ones created as part of the Assignment 1. Although for this case, only one type of Log will be used, and this will not include an attachment. Therefore, it can be seen as a lightweight of the previous model. For this reason the class TextLog may be the best fit for this exercise.

Servlet Class

4. Once you have created the web application, you will then create a Servlet Class that responds to a GET request with a HTML form where a user can submit the Title and the Log Content.

5. Extend the Servlet Class for receiving a POST request with the submission.

a. Create a Log object with the data received

b. Store the object created in memory and respond to the user with a message of success or error in a HTML page.

6. Extend the response so the HTML page rendered includes the message at the top, the form right below, and a list with all the submissions ordered by the timestamp at the bottom.

7. Extend the HTML page so the user has a link per Log for deleting it.

8. Extend the Servlet so it can process the new request for deleting the object and as a response will render the HTML page updated.

9. Extend the HTML page so the user has a link per Log for editing it.

10. Extend the Servlet so it can process the new request for editing the object and as a response will render the HTML page with the form prepopulated with the Log selected.

11. Extend the Servlet so it can now process a new request for updating the object and as a response will render the HTML page updated.

Part II:

Data Persistence

1. Part II of this assignment is to create a database and a table for persisting the Logs on HSQLDB (or MySQL).

2. Create a class that will represent the Log as the data object persisted in the database.

3. Create a service class that will function as intermediator between the servlet and the database.

4. Implement in the service class the methods for creating, reading, updating and deleting (CRUD operations) Data Objects on the Database using a JDBC connection.

Reference no: EM133398481

Questions Cloud

What cpt code describes this service : The patient is status post total ethmoidectomy 2 days ago and now presents with headache and a clear nasal discharge when moving the head forward.
Assessing the major economic events influenced supply : Assessing how 2 of the following major economic events influenced supply, demand, and economic equilibrium in U.S. economic activity.
What does a package diagram show and why : What does a Package Diagram show and why would it be useful - why is it important to not duplicate code in more than one place? If you do find code
Write java code to prompt the user for the starting number : Write Java code to prompt the user for the starting number to print (e.g. 5) and output the rectangular pattern below using nested for-loops
Implement in the service class the methods for creating : Implement in the service class the methods for creating, reading, updating and deleting (CRUD operations) Data Objects on the Database using a JDBC connection
Describe the national healthcare issue or stressor nursing : Describe the national healthcare issue/stressor nursing shortage and its impact on your organization. Use organizational data to quantify the impact.
Identify the influential agencies and stakeholders you would : Identify the influential agencies and stakeholders you would include in your plan. Describe the roles of the nurses in disaster planning and actual disasters.
What is the most common reason high-dose is prescribed : What is the most common reason high-dose is prescribed? What side effects are associated with high-dose niacin
Write an partially absolute reference for the cell j7 : How would you write an partially absolute reference for the cell J7, so that the row won't change no matter where you copied the reference.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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