Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with JSP and Servlets please! Purposes of this assignment lo introduc: lo reinforce: . Servlets . Servlet sessions HTML forms JavaScript Deployment descriptors
Need help with JSP and Servlets please!
Purposes of this assignment lo introduc: lo reinforce: . Servlets . Servlet sessions HTML forms JavaScript Deployment descriptors JSP General idea of the assignment Write a web application to function as a simple hand calculator that also keeps a "paper trail" of all your previous work. Details Your program should consist of the following components An HTML page This page is dynamically generated by JSP. It contains a trail of all the work you have done previously, for example something like this 0.0 + 2.5 2.5 + 5.0 7.5 * 3.55 26.625 /-3 . O--8.875 etc. In addition, it should have the following HTML form elements: a text field in which you can enter numbers; add, sub- tract, multiply, and divide buttons; a clear button, to reset the current value to zero; and a clear all button, to reset the current value to zero and "erase" the paper trail (for when your page is getting too long and you want to start over) Since the user should enter only numbers into the text field, use JavaScript to validate the numbers before you submit the form. (Hint: Google on "JavaScript validate input field.") A servlet The servlet should handle getting the request, calling some other class to do the work, and forwarding the result to JSP for formattingStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started