Question: Create a jsp page (name = web1.jsp) using the jsp template in NetBeans. The jsp file should include a title (Web Lab 1), a heading

Create a jsp page (name = web1.jsp) using the jsp template in NetBeans. The jsp file should include a title (Web Lab 1), a heading (First Web Lab) and a form. The form should include two text boxes and a submit button. The first text box should be for a name and the second text box should be for a yearly salary. The form should work with get or post methods. The jsp page should calculate a monthly salary (/12) and output the persons name with their calculated monthly salary. View the servlet that was automatically created and include it as part of your submittal.

Repeat the first exercise by creating a servlet that does the same thing. Create a new class to calculate the monthly salary. Also, add code to prevent the name and calculated salary from displaying when there is no request information.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!