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

  Write a string expression that parenthesizes the value

Given a string varible word, write a string expression that parenthesizes the value of word. So if the word contains "sadly" the value of the expression would be the string "(sadly)".

  Implement bounded partial queue by using signaling mechanism

Implement the same using a signaling mechanism that signals to all waiting dequeuers and do a performance comparison using timing analysis. Which works faster?

  Develop and test stand alone java applications

Gain practical skills in Graphical User Interface (GUI) programming by implementing an event driven application.

  Writing a simple gui application using a class called myguic

writing a simple GUI application using a class called MyGuiClass. Your GUI will have a JButton which your program will need to respond to when it is clicked. Describe what you would need to do to setup event handling using a nested inner class. Use J..

  Uses a loop to populate a one-dimensional array

Write the following program that creates and uses a loop to populate a one-dimensional array that holds the even numbers between 1 and 12; creates and uses a loop to populate a second one-dimensional array that holds the odd numbers between 1 and 12;..

  Describe how you would design a class for it

A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, public fields, private fields, and mutator methods.

  Program to maintain list of names with associated numbers

Write a complete subclass of SimpleList named ListSet where the ‘add' method is overridden such that a ListSet will never contain duplicate items - Write a program to maintain a list of names with associated telephone numbers.

  Prepare a class called geometrycalculator

Calculates the area of a circle of a given radius and write a class called GeometryCalculator that includes the subsequent methods

  Using netbeans, use repetition to display a table of values

Using Netbeans, use repetition to display a table of values showing x, the square of x and the cube of x. X is to go up to 5.

  Learn how expressions can be evaluated at run-time

Write a Java program (a collection of Java classes) including a class named ExpressionCalculator that contains a static main method. This main method will prompt the user to enter a constant expression.

  Create a class called numberset

You need to create a class called NumberSet.  It needs an empty default constructor and an overloaded constructor that takes an integer argument and creates a vector with that many random numbers in it.  So... if I created

  What violations and crimes would you definitely file

What if you were a parole officer and had to decide whether or not to file complaints against your parolees? What violations and crimes would you definitely file complaints for and what would you most likely overlook and why?

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