Question: Assignment 1: Warm up with JSP In this assignment, you will install Tomcat and NetBeans. Once you have successful set them up, create a Web

Assignment 1: Warm up with JSP In this assignment, you will install Tomcat and NetBeans. Once you have successful set them up, create a Web project named Assignment1. Add a JSP file quadratic.jsp that let a user to compute quadratic equations. A quadratic ax" + bx + c = 0 can be solved using the quadratic formula below. -b +62 - 4ac 2a The JSP file contains a form with the field a, b, and c. The submit button is for submitting the data to the server to be process. This is the first screen the user sees when they type in localhost:8080/Assignment1/quadratic.jsp JSP JS X localhost:8080/Assignment 1, ... The user solves the equation 1*x^2 -8*x+5=0 by enter 1, -8, and 5 and then click submit. x^2 0 submit JSP XS X > + localhost:8080/Assignment ... >> The values from fields a, b, and care extracted from the request. The value for x is computed using the quadratic formula above. x + 5 = 0 1 x^2 + -8 submit 0 0 >> JSP JS X > localhost:8080/Assignment1 x^2+ submit x=7.3166247903554, x=0.6833752096446002 The page then displays the answer. The user may enter a, b, and c for another equation and click on submit III Submit just the JSP file to Assignment 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
