Question: Write a controller class using a servlet. Assume that your form has a textbox named soccerHeadCoachText that is initial value is empty string. The form

Write a controller class using a servlet. Assume that your form has a textbox named soccerHeadCoachText that is initial value is empty string. The form will Also have a processButton, EditButton, and cancelButton.

Write a controller class using a servlet. Assume that your form has

1) [20] write a Controller class using a servlet. Assume that your form has a textbox named soccerHeadCoach Text that is initial value is empty string. The form will also have a processButton,editButton and cancelButton. (skeleton code provided at bottom) The servlet will check for the following a. If the button named processButton was clicked i. If the textbox is null or empty string, send to edit jsp ii. If the textbox has a string with "Bielsa", send to bestcoachOffhePlanetjsp li. If the textbox has anything else, send to process.jsp b. If the button named editButton as clicked i. Redirect to edit, jsp c. If anything else is clicked (including cancelButton) i. Redirect to goodbye.jsp public class Controller extends HttpServlet protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException

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!