Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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
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