Kizspy.me
Liner years of experience. |
SHOW
Figure 1. Interface of page
(When the web page runs, if the interface is not the same as above, will not be considered for grading)
Assume users fill the values into the textfields and choose a position.
•
When users click "SHOW" button, the browser makes a request to /show using GET method (The
Servlet is configured in web.xml) (0.5 point):
a. Check validate input years of experience: If users enter years of experience that is not an
integer number> 0, show the error text "Input years of experience is not an integer number >0!"
to servlet. (1.0 point)
b. Execute: Output the information of coach to servlet, as following. (as Fugure 2) (1.0 point)
Before clicking "SHOW" button:
Enter coach name:
Choose an position:
Alex Ferguson
O Goalkeeper Fitness Head
Enter years of experience: 20
SHOW
After clicking "SHOW" button:
Coach name:Alex Ferguson
Position: Head Coach
Experience years:20
Figure 2. Output the result after clicking button
Zoom
- FUO
+100%
Close