Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a servlet program (.java file) that will: When you enter a first name John, a last name Doe, click on the radio button Male
Write a servlet program (.java file) that will:
- When you enter a first name John, a last name Doe, click on the radio button Male and click on the button Submit, display a response on the webpage Welcome to my shop as a header and a message Thank you Mr. John Doe. (15 points)
- When you enter a first name Jane, a last name Doe, click on the radio button Female and click on the button Submit, a response on the webpage will display Welcome to my shop as a header and a message Thank you Ms. Jane Doe. (10 points)
- When you enter a first name John, a last name Doe, click on the radio button Other and click on the button Submit, a response on the webpage will display Welcome to my shop as a header and a message Thank you John Doe. (10 points)
You should consider the following error cases where an appropriate error message should be displayed on the webpage:
- User doesnt enter text for first name and last name (10 points).
- When either a first name or a last name is not entered and the user clicks on the Submit button. (5 points)
- When no radio button is checked and the user clicks on the Submit button. (5 points)
There are 10 points for aesthetics and creativity. Usually this includes user friendly webpage. The look and feel of it. Placing of the components in an appropriate flow. Use of colors and fonts to beautify the presentation. Be creative!!
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