Implement a stock quote service as a web application

Assignment Help JAVA Programming
Reference no: EM13706556

Question: You need to implement a stock quote service as a web application using HTML, a java servlet, and a JSP page.

For full credit, your application should use the MVC (Model-View-Controller) pattern with following components:

  • The model, consisting of:
  • The yahoo finance service.
  • A java bean class (similar to the StockQuote class from Homework #1) to show the requested stock data.
  • The view, consisting of:
  • A static html form where the user enters a stock symbol.
  • A JSP page that displays the requested data.
  • The control consisting of:
  • A java servlet to obtain the data from Yahoo, package it in a bean, and forward to the JSP for formatting.

The sequence of events when a user requests a stock quote should be:

Part 1: The user types a stock symbol in a text box on an HTML form and clicks the submit button.

Part 2: The java servlet retrieves the stock symbol from the request, and gets the current price, price change, high, and low from the Yahoo service.

Part 3: The servlet creates a bean object and stores the stock data in the bean.

Part 4: The servlet stores the bean in the request object (using setAttribute), gets a RequestDispatcher from the request, and then forwards to the JSP.

Part 5: The JSP uses a "jsp:useBean" element to access the bean, and "jsp:getProperty" elements to retrieve the bean data.

Part 6: The JSP generates HTML output with the requested data to display in the browser.

You need to make well-formed and clean code. You should not copy and paste the code from other source.

Reference no: EM13706556

Questions Cloud

Write a mathematical recursive definition : Write a mathematical, recursive definition of p(n) - Prove that your answer to Part a is correct by using mathematical induction.
Prepare a program for a bank that allows the user : Prepare a program for a bank that allows the user to enter an amount of money in cents. Show the number of whole dollars the bank will give the customer in exchange.
Compute and display net weekly pay : You need to prepare a C++ program in which you declare variables that holds an hourly wage, a number of hours worked, and a withholding percentage.
Write a select statement that returns three columns : Write a SELECT statement that returns three columns: EmailAddress, OrderID, and the order total for each customer. To do this, you can group the result set by the EmailAddress and OrderID columns.
Implement a stock quote service as a web application : Implement a stock quote service as a web application using HTML, a java servlet, and a JSP page
Prepare a java program to create a gui : Prepare a java program to create a GUI and show the picture of the zodiac. Be sure to include comments. The comment should describe the purpose of the program and the data to be entered.
Computes the area of a triangle : The subsequent function computes the area of a triangle, but contains three errors. Find the errors and fix them.
Which detects even parity : Consider the subsequent circuit, which detects even parity. There are one output, even, and three inputs, a(2), a(l) and a(0), which are grouped as a vector or bus.
What is the cardinality of an entity : What is the cardinality of an entity - Why is it useful to consider the cardinality when designing a database?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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