PRJ302_-_PE_-_SP_2025_3469.webp
T

PRJ302_-_PE_-_SP_2025_3469.webp

☑Kizspy.me
Choose an position:
Enter years of experience:
SHOW
O Goalkeeper Fitness Head
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:
Alex Ferguson
Zoom
- FUO
Choose an position:
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
+ 100%
Close
Chưa có bình luận nào.

Thông tin

Category
PRJ302
Thêm bởi
true_love1
Ngày thêm
Lượt xem
1,297
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom