Create java servlets

Assignment Help JAVA Programming
Reference no: EM13188139

This assignment will focus on creating Java Servlets that can not only serve HTML to web users, but also provide a web service API serving JSON to applications accessing the site.

The server for this assignment is the following:

Each of you has an account on that server.  You should be able to SSH to the server.

Please let me know ASAP if you have problems logging into the server.

Deployment

In your home directory, there is a directory named "webapps".   Create a directory named "cset4100(hw4" inside the webapps directory.   You may want to copy your code from hw3 into the hw4 directory.

Requirements

You will be extending the application from the last assignment to support a web service API for the "Products" of a web application that serves JSON to "3rd party software/applications".

You will need to provide JSON support for both the main product "index" page as well as the individual "product detail" page.

The benefits of the ModelRViewRController paradigm should become readily obvious in this assignment.  Specifically, you should only need to

1) create a new JSON "view" (e.g., a JSP page that only displays the JSON representation of the data)

2) Add code to your controller to check which view to display.  For this assignment, there will be a URL parameter named "format".  When the value of the "format" parameter is "json" display the JSON view, otherwise display the regular HTML JSP view.

Reference no: EM13188139

Questions Cloud

What is the economic cost of jens business : oprah just inherited a house with a market value of 150,000 and she does not expect the market value to change. Each year, will pay 300 for utilities and 2000 in taxes. She can earn 4 percent on money in a bank account. Her cost of living in the h..
State how can one draw a best fit straight line : How can one draw a best fit straight line on a temperature versus time graph to determine the temperature at which two phases (solid plus melting point) appear
Determine if a market is an oligopoly : natural monopolies is a commonly used, potential solution to the problems presented by natural monopolies. a. Giving incentives to firms to become b. Regulating c. Breaking up firms that are d. Outlawing price discrimination by e. Refusing to grant p..
State mercury acetate is allowed to react completely : mercury(II) acetate is allowed to react completely with a solution containing 9.718 g of sodium sulfate, how many grams of the reactant in excess will remain after the reaction?
Create java servlets : Create a new JSON "view" (e.g., a JSP page that only displays the JSON representation of the data)
Define what is the molarity of sulfuric acid in the solution : What is the molarity of sulfuric acid in the solution? How long (in seconds) would it take to fill a 55 gallon drum, and how much sulfuric acid (lb_m) would the drum contain? (use two dimensional equations)?
What is the projected net income : Calculating Projected Net Income. A proposed new investment has projected sales of $825,000. Variable costs are 55 percent of sales, and fixed costs are $187,150; depreciation is $91,000. Prepare a pro forma income statement assuming a tax rate of..
Find the dimensions of the building : Suppose the walls cost twice as much per m2 as the ceiling, and suppose the floor (i.e.base) costs nothing. Find the dimensions of the building that would minimize the cost.
What were the profits attributable : Joe Holiday operated a business renting beach umbrellas this past summer. He operated the concession for 3 months. Joe knew that rain was frequent along this stretch of beach, but he was luck and enjoyed 60 rentable days this season. On each renta..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write java programming to show number of credits for course

Write the java programming to solve following problem. We are given a student's marks in Calculus 1, CS1, and Physics 1 (each mark being between 0 and 100) also number of credits for each course.

  Evaluate the rtas resource requirements

Design and implement a set of classes and interfaces and use them to evaluate the RTA's resource requirements.

  Write a java program that asks the user for his/her gender

According to researchers at Stanford Medical School, the ideal weight for a woman is found by multiplying her height in inches by 3.5 and subtracting 108.

  Develop parent lock method asks for four digit password

Develop the parent lock method (turns lock on/off) which asks for 4 digit password. Navigating to any channel which is in range 99-110 must ask for password when parent lock is on.

  Create and implement class called date to store month

Create and Implement the class called Date which has data members to store month (as a number), day, year, and name of month.

  Implement a game called bunko-poker

Implement a game called Bunko-Poker. The gameplay is an easily programmed version of the popular game Yahtzee. Your program will make use of the supplied static functions Dice.roll() and, in cases where you might need the string ordered, Dice.ordered..

  Write java program to read present basic hourly wage

Write down a java program which will input 1. Read present basic hourly wage. Read in workers fist name and socond name.

  What is a nested inner class

What is a nested inner class? What special privileges does a nested inner class have? Give an example of how you declare a nested inner class

  Application for an animal-fur trimming service

Create an application for an animal-fur trimming service. Write the code for the application. Prompt the user to indicate how many animals. Display the total fee for one year. Be pleasant in your output as it will be expensive.

  Drags html list items to and from a javascript array

1.Write a program which drags html list items to and from a javascript array.2. if an identical list item is already in the array, prevent the list item from dropping in the array. Give an error saying that the list item already exists in the array

  Write a reference class called ctatrain

writing a reference class that consist of the 2nd and 3rd instance variables below. my class should consist of an array of values in the 2nd instance variable

  Temporarily move to the street so that the

Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave

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