Starting from:

$35

Project 03 Solution

The goal of this project is to practice on the concepts Servlet.




Write a servlet to display:

1. If the user leaves the box labeled: Enter Your Name, blank, inform the user in an html page that you need to enter your name.

2. If the user leaves the box labeled: Enter Your Age, blank, inform the user in an html page that you need to enter your age.

3. If the user enters the box labeled: Enter Your Age, anything other than a positive integer, inform the user in an html page that you need to enter a positive integer for your age.

4. If the user enters correct name and age, then in html page the following:

If the age is bigger than 17, display: You are to drive, otherwise display: You are not eligible to drive.

More products