Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

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

Step: 3

blur-text-image

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 Publishing With Filemaker Pro On The Web

Authors: Maria Langer

1st Edition

0201696657, 978-0201696653

More Books

Students also viewed these Databases questions

Question

4. How has e-commerce affected business-to-business transactions?

Answered: 1 week ago