Answered step by step
Verified Expert Solution
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.
the instructor is using HTML and JSP
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 here is the rest of example
Step 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