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.
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?
|