Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is jsp &servlet homework. please use netbeans java web Application thsnks. the instructor is using HTML and JSP here is the rest of example

this is jsp &servlet homework.
please use netbeans java web Application
thsnks.
image text in transcribed
the instructor is using HTML and JSP
here is the rest of example
image text in transcribed
Alignment Topic: MVC In this men you will go to win the MVC model. The pic the way for their samanber of depends Wheerlikheit will com o containing their own to the textent the buty Netpay Calculator Result Computing the taste Theme of depres will demine which bracket the new in. The tax backet is wet . - Dependent Tar-20 2-3 Depeden Tax -19% 4 Dependents Tex -10% Doce e seus pide all the fout with the shapp dreplay the resume of dependent, The folo complete et pay by groupe Erhandling Your app should check for non. The same stopy. The groups Bohempty and members. You can will heative ben Handling negative values is optional fan of de informon, clicking the white will play the normalelow them. The more show you can cho how to check fast is er boolean bertering til 15 tulluttlanketurn false try Doublepatochter catch(exception e treturn fals return true Below are examples of error messages. Netpay Calculator Netpay Calculator Na Nuse Gems you Gry Mube Mat Can MVC: The MVC pattern consists of the models, the views, and the controllers. In our app, the model is just the User. The views are the two JSP pages that renders the form and rendering the user model. The controller is the serviet ComputeNetPayServlet which directs the flow of the application Views: There two jsp files. index.jsp (displays the form with data entered by the user, and error messages) result.jap (displays the data from the User model) Model: The User class has the following: . . . . . String name double grossPay Int numDependents For the User class to be a JavaBeans, it needs an empty constructor, and get and get methods for its instance variables. In addition to the set and get methods for the above fields, it should also have get methods for tax Rate and netPay. Because they are computed value, there's no need to have set methods for them. . Int get TaxRate() double getNetPayt) Controller: The ComputeNet PayServlet receives data from index.jsp. It validates the inputs and prepares the appropriate error message for each field if there are any errors. If there are no errors, it creates the model User with the input information and forward it to result.jsp. If there are any crrors, it forwards the input strings and the error message to the index.jsp

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

=+2 How does the preparation and support for each type of IE vary?

Answered: 1 week ago

Question

=+What is the extent of the use of each type of IE?

Answered: 1 week ago